Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp287952ybj; Thu, 19 Sep 2019 14:26:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbzkg6ujPN/GFSaomMSq7M9XMy146xQFKwH0ziMH4G3zBQA3rT6ufRmFRrZXmihuIvu+fR X-Received: by 2002:a17:906:ecf9:: with SMTP id qt25mr15957929ejb.249.1568928405310; Thu, 19 Sep 2019 14:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568928405; cv=none; d=google.com; s=arc-20160816; b=tXIrTahzEdysX67O0qu5ivAUqow02B2X80B4knM+41EZDEXRsdyitGVOGHRjQFuxXP soUSl8I4bXxxFuFFfQGuowDtCP5kEr4MxvbDKHhKCj7ADlUJwj9SzNP14CXPEwKkJ1I2 WgBwtIonpWWM2O69JXKLd3p3XvnyNN4Vcle+xNtRqFoP3ueCzMrRDwGi3zj2IwcEaucU fCw2tbgQmvrhtYqXQqPhAu/KzEXd/286ljd/f+EfKZR9Ljehn2P6FdyOFbUlHUqautw6 e58GBUMjGO18PUZweuGcmecrttyDKnYtHEV7PfyXl0NbeyRjYLZ37nNT9ooPT3+MVTvZ zSNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=AnLAppA40BqI8z9CshVPHeubC24brELzTHSPwO597YU=; b=HDiI8vv3WPQ0PEJ1+RBjYWAb3zTdez+HdaSVrVsO5hKajguSZzXsLk7Ug7oif9/7di G84MgCtbu11xpjvqFdR54zp6GCLjhZpWXs4lJJZmGf3ADCZV1fcdknxPhOQcOYseQCt1 gjWCk8ebnmu5VPhBxOsJNqGq6v+UrkMohwECsXJvy0xMRR0aOniJajTFJB1DeIWlCaiY 87VQMjTKXq5D7JlWkwcbQ64yYJa9DZ1MtgPZDJfQCdbzdTPFn8bicDLgBQx6QyNZu4yN 0gDrjZv/nOp3Qp00o+QHfrsWfwE8llO2uFVhqaXuVHYOmVtesVb/lqnW9UqdwUjYCqwX gLaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Xpv+vFwi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d19si5177901ejb.351.2019.09.19.14.26.21; Thu, 19 Sep 2019 14:26:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Xpv+vFwi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403816AbfISOXg (ORCPT + 99 others); Thu, 19 Sep 2019 10:23:36 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:53428 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403768AbfISOX3 (ORCPT ); Thu, 19 Sep 2019 10:23:29 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190919142328euoutp024de8eee1af94b3b4f64b85a4a02b84e8~F3Pk55gyF1748917489euoutp02L for ; Thu, 19 Sep 2019 14:23:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190919142328euoutp024de8eee1af94b3b4f64b85a4a02b84e8~F3Pk55gyF1748917489euoutp02L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1568903008; bh=AnLAppA40BqI8z9CshVPHeubC24brELzTHSPwO597YU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xpv+vFwizO8MF8htiBDmDI6/+MEBOo28EozwPyXQir4HfD8XYVM67AtJD8V+zFTP+ BBkURovEhn+GnOFs6L2BR4Ydc0T99DMIJxqTmtpVKHtWz/cPK3XH9mej5KLWEfk1Bk g+g4+o9MPgUOjLkZGU3xnQ91tLKLhs3+H4oDp9Ck= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190919142327eucas1p2ed6a1e2c127dd2789af76ab265167b07~F3PkJG0Yp3082530825eucas1p2m; Thu, 19 Sep 2019 14:23:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id A9.1B.04309.F5F838D5; Thu, 19 Sep 2019 15:23:27 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190919142326eucas1p204819014fe85716b47e2de4af9102cd5~F3PjKGocO2469524695eucas1p2L; Thu, 19 Sep 2019 14:23:26 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190919142326eusmtrp1095ef82681f3c06555d9fdcc527e3361~F3Pi7onA90555105551eusmtrp1a; Thu, 19 Sep 2019 14:23:26 +0000 (GMT) X-AuditID: cbfec7f4-afbff700000010d5-56-5d838f5f8266 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B2.65.04117.D5F838D5; Thu, 19 Sep 2019 15:23:25 +0100 (BST) Received: from AMDC3555.digital.local (unknown [106.120.51.67]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190919142325eusmtip10316e90c68f927ac1cd0f37950339202~F3PiEhIDb3226332263eusmtip1B; Thu, 19 Sep 2019 14:23:25 +0000 (GMT) From: =?UTF-8?q?Artur=20=C5=9Awigo=C5=84?= To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: =?UTF-8?q?Artur=20=C5=9Awigo=C5=84?= , cw00.choi@samsung.com, myungjoo.ham@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, georgi.djakov@linaro.org, leonard.crestez@nxp.com, m.szyprowski@samsung.com, b.zolnierkie@samsung.com, krzk@kernel.org Subject: [RFC PATCH v2 06/11] interconnect: Relax requirement in of_icc_get_from_provider() Date: Thu, 19 Sep 2019 16:22:31 +0200 Message-Id: <20190919142236.4071-7-a.swigon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190919142236.4071-1-a.swigon@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0hTYRjG+3YuOxtNjlPypYvZNKEsu9DlK0UKQw5E0B8FooiuOmikU3a8 dIEyzZqXtCaiuTArU1NMXfPSNDMbmUiuZZpQa9W63yS2kKgs57Hyv9/3Ps/zPd8LH0MoHdR8 Zr8mnddq1MkqWk623/0+tDK+JDdudWejFPfdbZNiR1Uewq0VzRR+7H5L4QuWIQo/+jZO4/Kb RhrrHWdIbLW2SHG9/SuFjc5RCg+bz9PYddqCcIW1R4KbLHYpfnK8nsYVpe/pLd6csSGf5p6O dtOco7Bfwl2vOca1fumUcLe/dEu4YlMD4lxG/51MjDx8H5+8P5PXropIkCc1ua9SaVbpweY6 E5GNzHQBkjHAroPeiTGyAMkZJVuPQNf0ghYPbgTOE0+nXUrWhWDgSvDfROudH0g01SG4NfIS /UsUGhooj4tmt4K+7LnUI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xb9ZFdhCbV8BCYlnDAmaIFfISqzccALM5BSwlvuybD3aG EFDN3MdzGSHqBSVOznwCFOcAWqAusX6eEEiYGai1eets5gmMgrOQVM1CqJqFpGoBI/MqRpHU 0uLc9NxiI73ixNzi0rx0veT83E2MwCjeduznlh2MXe+CDzEKcDAq8fAqlDfHCrEmlhVX5h5i lOBgVhLhnWPaFCvEm5JYWZValB9fVJqTWnyI0RTotYnMUqLJ+cAEk1cSb2hqaG5haWhubG5s ZqEkztshcDBGSCA9sSQ1OzW1ILUIpo+Jg1OqgXHzizM5okftX/LsumzmY9PM/bM/qOKUhq91 tXuCfKn5IQmmtEd/FFnu3PCc176Zc8V+1Z3PL4SE3FOt3FTRvFFe9Lz5vKfSiumX5scK7ghe 7/Zh9dJTuow7vObyld04cyXytZJR+bbzfGkf2nY6THwQIHQwdhVD4RmXf7LBvVXfLtxgbdGp u6bEUpyRaKjFXFScCAA/QVJ9+AIAAA== X-CMS-MailID: 20190919142326eucas1p204819014fe85716b47e2de4af9102cd5 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190919142326eucas1p204819014fe85716b47e2de4af9102cd5 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190919142326eucas1p204819014fe85716b47e2de4af9102cd5 References: <20190919142236.4071-1-a.swigon@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Artur Świgoń This patch relaxes the condition in of_icc_get_from_provider() so that it is no longer required to set #interconnect-cells = <1> in the DT. In case of the devfreq driver for exynos-bus, #interconnect-cells is always zero. Signed-off-by: Artur Świgoń Acked-by: Krzysztof Kozlowski --- drivers/interconnect/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index 95850700e367..f357c3a78858 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -284,7 +284,7 @@ struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) struct icc_node *node = ERR_PTR(-EPROBE_DEFER); struct icc_provider *provider; - if (!spec || spec->args_count != 1) + if (!spec) return ERR_PTR(-EINVAL); mutex_lock(&icc_lock); -- 2.17.1