From patchwork Mon Sep 17 17:22:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Porter X-Patchwork-Id: 1468621 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 829483FE79 for ; Mon, 17 Sep 2012 17:24:10 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TDf0Y-0005AO-Kx; Mon, 17 Sep 2012 17:21:18 +0000 Received: from mail-yx0-f177.google.com ([209.85.213.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TDf09-00058J-Ki for linux-arm-kernel@lists.infradead.org; Mon, 17 Sep 2012 17:20:54 +0000 Received: by yenq9 with SMTP id q9so1599576yen.36 for ; Mon, 17 Sep 2012 10:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=2QnEjzrZu1L0VWZIw3rJBaeTGLZg9KSmErLhjPv690g=; b=E3svW9xZ20iNqBQ35WQJA3vltcvaC2SZ489uaRU1/ux3Q4WLO2hw74tDv/mtOumcHV hRFFyt2+9CXAzXkaxJ3APp9KJz7bI1WIMBkxpXPy5QmdyMfCjN3xBx26Leub7YbuysmM pLLZB8K8vjvpE77rsUgKVwEn0Z//9qR+ms2tppTJiGo5XO3zPy3t2/6hHVxpc5YIsZfv MAntv4QYs/HH7nyEwJkKy9jHwoYlkt7lltKG77kuSzAqVmEzUl4BXgvFeQalOX3QwMmC hA0Xt0pegU1joD8Fey2QBrvwj4XTL9yojRwL/MvFPEyztEbACLjej6gxMDMMV/nwjD2e iqbA== Received: by 10.236.153.39 with SMTP id e27mr12517192yhk.130.1347902453190; Mon, 17 Sep 2012 10:20:53 -0700 (PDT) Received: from beef.ohporter.com (cpe-24-166-64-7.neo.res.rr.com. [24.166.64.7]) by mx.google.com with ESMTPS id c64sm14914329yhj.17.2012.09.17.10.20.51 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 10:20:52 -0700 (PDT) From: Matt Porter To: Linux OMAP List , Linux SPI Devel List , Grant Likely , Tony Lindgren Subject: [PATCH v2 2/2] ARM: OMAP2+: Enable pinctrl dummy states Date: Mon, 17 Sep 2012 13:22:18 -0400 Message-Id: <1347902538-21208-3-git-send-email-mporter@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1347902538-21208-1-git-send-email-mporter@ti.com> References: <1347902538-21208-1-git-send-email-mporter@ti.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ohiomdp[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: AnilKumar , Linux Kernel Mailing List , Linux ARM Kernel List 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 Enable pinctrl dummy states for all OMAP platforms that don't populate DT. This allows drivers to be converted to pinctrl and not generate new warnings on platforms that do not provide pinctrl data. These platforms already have pinmuxes configured before the drivers probe. Signed-off-by: Matt Porter Acked-by: Linus Walleij --- arch/arm/mach-omap2/devices.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 1efa984..6ef4010 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -628,6 +629,10 @@ static inline void omap_init_vout(void) {} static int __init omap2_init_devices(void) { + /* Enable dummy states for those platforms without pinctrl support */ + if (!of_have_populated_dt()) + pinctrl_provide_dummies(); + /* * please keep these calls, and their implementations above, * in alphabetical order so they're easier to sort through.