From patchwork Thu Dec 4 11:10:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5437431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F305DBEEA8 for ; Thu, 4 Dec 2014 11:12:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1BD1B20357 for ; Thu, 4 Dec 2014 11:12:49 +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 5062020256 for ; Thu, 4 Dec 2014 11:12:48 +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 1XwUJ2-0000dV-Ns; Thu, 04 Dec 2014 11:10:44 +0000 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XwUIy-0000W8-HG for linux-arm-kernel@lists.infradead.org; Thu, 04 Dec 2014 11:10:41 +0000 Received: by mail-wi0-f178.google.com with SMTP id em10so7975344wid.17 for ; Thu, 04 Dec 2014 03:10:18 -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; bh=I//QhT63YV6omgKFQj1aFfTenRmQqgHPlvMI7ZNnjLM=; b=r0Mk0XMy/NC3caz2kuMjUlAMw5sXpP0A98yPpsFivZgiKtkIdeRaYBtRVl4h69WxTv 3u9IeHN0AGjt8wweDFV2fbfrdaWmEdv8VF4v5tfp6b5+JJeB+CE5bZOjxyLUmuLp2BQl q30IQU9DsYbBvz9fFkvnR4U4UH+e9RNxG3UX8ePQi8xrngtBX7Knd4qul8cbS5eQWUdu 27DtWmR+yhmXsZXyeeInQ3WpYVJHK/gTb5JpFuHkre7QkICc4ZWKSlgnzCAsa8XCufYG EDWEyvy2WZoJKJ7tOuk1gRix456A8RnpjD+aoenku38BdHOo6Aipd2B65uD7/rd2EfFw 7iFQ== X-Received: by 10.180.101.200 with SMTP id fi8mr108531413wib.77.1417691418093; Thu, 04 Dec 2014 03:10:18 -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.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Dec 2014 03:10:17 -0800 (PST) From: Dmitry Eremin-Solenikov To: Robert Jarzmik Subject: [PATCH 1/3] ARM: pxa: add regulator_has_full_constraints to corgi board file Date: Thu, 4 Dec 2014 14:10:00 +0300 Message-Id: <1417691402-28166-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141204_031040_735498_8B0D6948 X-CRM114-Status: GOOD ( 10.25 ) 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 corgi 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 corgi 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 corgi-audio corgi-audio: ASoC: failed to instantiate card -517 Cc: stable@vger.kernel.org Signed-off-by: Dmitry Eremin-Solenikov --- arch/arm/mach-pxa/corgi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 06022b2..89f790d 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -752,6 +753,8 @@ static void __init corgi_init(void) sharpsl_nand_partitions[1].size = 53 * 1024 * 1024; platform_add_devices(devices, ARRAY_SIZE(devices)); + + regulator_has_full_constraints(); } static void __init fixup_corgi(struct tag *tags, char **cmdline)