From patchwork Thu Oct 11 08:11:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1581341 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id C46973FCFC for ; Thu, 11 Oct 2012 08:15:11 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TMDtD-00075B-Eg; Thu, 11 Oct 2012 08:13:07 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TMDs5-0006hb-C6 for linux-arm-kernel@lists.infradead.org; Thu, 11 Oct 2012 08:11:59 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBP00K0YYRRYFO0@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 11 Oct 2012 17:11:56 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-36-50767f4ce401 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 5E.34.03783.C4F76705; Thu, 11 Oct 2012 17:11:56 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBP005FVYR04E50@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 11 Oct 2012 17:11:56 +0900 (KST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/15] pinctrl: samsung: Distinguish between pin group and bank nodes Date: Thu, 11 Oct 2012 10:11:11 +0200 Message-id: <1349943081-27939-6-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1349943081-27939-1-git-send-email-t.figa@samsung.com> References: <1349943081-27939-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAJMWRmVeSWpSXmKPExsVy+t9jAV2f+rIAg/nvRS02Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfGjhtPmQsWcFTMmyrWwPiDrYuRk0NCwETi3ZzZjBC2mMSFe+vB 4kICixgl3uxz7mLkArI3M0ls6nrGDJJgE1CT+NzwCKxIREBDYkrXY3aQImaBpUwS25ZMAEsI C4RL/Dy7FSjBwcEioCrx670kSJhXwEmidetNVohl8hJP7/eBlXMKOEt83bSCCWKxk8TZ14/Z JzDyLmBkWMUomlqQXFCclJ5rqFecmFtcmpeul5yfu4kR7O9nUjsYVzZYHGIU4GBU4uGduLI0 QIg1say4MvcQowQHs5II7+XasgAh3pTEyqrUovz4otKc1OJDjNIcLErivM0eKQFCAumJJanZ qakFqUUwWSYOTqkGRv7fDha7pz93P8p8edlV64fuFv62OspXD1x6MJX3QkP6o9Kmp38/Xyg+ KCYg5Vt37rNpm/qbk9KRkbsS3CdXlT8wKLus9cNxw+67edIi1196fKgwfK3VOPN6cPFKj74r zW0cJqmKJae4m30k/EUXf+25O/lt5o5TSdwWnaGbtJ88qJ/3d5pdgxJLcUaioRZzUXEiAK9p nfbzAQAA X-Spam-Note: CRM114 invocation failed X-Spam-Score: -9.0 (---------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-9.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.1 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, swarren@wwwdotorg.org, tony@atomide.com, devicetree-discuss@lists.ozlabs.org, tomasz.figa@gmail.com, t.figa@samsung.com, kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, thomas.abraham@linaro.org, linus.walleij@linaro.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch modifies the loop iterating over all child nodes and parsing pin groups to check whether the node is really a pin group node by checking for existence of samsung,pins property. This is a prerequisite for further patches adding additional subnodes to the pinctrl node, required for per bank GPIO and interrupt specifiers. Signed-off-by: Tomasz Figa --- drivers/pinctrl/pinctrl-samsung.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index f219bb6..94e1378 100644 --- a/drivers/pinctrl/pinctrl-samsung.c +++ b/drivers/pinctrl/pinctrl-samsung.c @@ -609,7 +609,7 @@ static int __init samsung_pinctrl_parse_dt(struct platform_device *pdev, */ for_each_child_of_node(dev_np, cfg_np) { u32 function; - if (of_find_property(cfg_np, "interrupt-controller", NULL)) + if (!of_find_property(cfg_np, "samsung,pins", NULL)) continue; ret = samsung_pinctrl_parse_dt_pins(pdev, cfg_np,