From patchwork Thu Dec 4 11:10:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5437441 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 551229F1C5 for ; Thu, 4 Dec 2014 11:12:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8609820256 for ; Thu, 4 Dec 2014 11:12:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6B262035C for ; Thu, 4 Dec 2014 11:12:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XwUJE-0000iK-LK; Thu, 04 Dec 2014 11:10:56 +0000 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XwUIz-0000WL-R1 for linux-arm-kernel@lists.infradead.org; Thu, 04 Dec 2014 11:10:42 +0000 Received: by mail-wi0-f170.google.com with SMTP id bs8so35783910wib.3 for ; Thu, 04 Dec 2014 03:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UQWPG+8D95cfs9fFDFXViWs7iCeGmUO0WM+oEdmm/Mo=; b=o+qT9lZi28qrStWdr1vSc42HLTmwW+cyHq4EJhc+iU/d5M450UsDI5vFyGodCgpuqu +Ab0pUEH3sIVXtvcnxMbSwZSD1qlZRvhKeX94N4HQi2cBkkj3exLDxQWAyBhdIAfEHOr ItbwtBnEWZiDVJGr1inZPk0U5lBIW6XWlZtmQtYZSbbWkRXidShk/i+S8j6Bos0Hke/V zXPi2JnjykLUh50XUYMY4QFhjgoh+GPGfEA474+2df6f7GSgXbNIo7UCV2dxdpb3hAA4 R0IZecT85gpL3tq7sUbZo4tRmuRSdNYU0vWzcvyhEv/PWp9YTyaNRirCU9nj3BrbuDNG bZWA== X-Received: by 10.180.198.145 with SMTP id jc17mr109394069wic.67.1417691419790; Thu, 04 Dec 2014 03:10:19 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id td6sm3023670wic.15.2014.12.04.03.10.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Dec 2014 03:10:18 -0800 (PST) From: Dmitry Eremin-Solenikov To: Robert Jarzmik Subject: [PATCH 2/3] ARM: pxa: add regulator_has_full_constraints to poodle board file Date: Thu, 4 Dec 2014 14:10:01 +0300 Message-Id: <1417691402-28166-2-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1417691402-28166-1-git-send-email-dbaryshkov@gmail.com> References: <1417691402-28166-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141204_031042_034071_01F7A16E X-CRM114-Status: GOOD ( 10.46 ) X-Spam-Score: -0.8 (/) Cc: Haojian Zhuang , stable@vger.kernel.org, Daniel Mack , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add regulator_has_full_constraints() call to poodle board file to let regulator core know that we do not have any additional regulators left. This lets it substitute unprovided regulators with dummy ones. This fixes the following warnings that can be seen on poodle if regulators are enabled: ads7846 spi1.0: unable to get regulator: -517 spi spi1.0: Driver ads7846 requests probe deferral wm8731 0-001b: Failed to get supply 'AVDD': -517 wm8731 0-001b: Failed to request supplies: -517 wm8731 0-001b: ASoC: failed to probe component -517 Cc: stable@vger.kernel.org Signed-off-by: Dmitry Eremin-Solenikov --- arch/arm/mach-pxa/poodle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 1319916..e81d216 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -455,6 +456,7 @@ static void __init poodle_init(void) pxa_set_i2c_info(NULL); i2c_register_board_info(0, ARRAY_AND_SIZE(poodle_i2c_devices)); poodle_init_spi(); + regulator_has_full_constraints(); } static void __init fixup_poodle(struct tag *tags, char **cmdline)