From patchwork Thu Dec 4 11:10:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5437451 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 51BDBBEEA8 for ; Thu, 4 Dec 2014 11:12:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86D862025A for ; Thu, 4 Dec 2014 11:12:52 +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 85E9120256 for ; Thu, 4 Dec 2014 11:12:51 +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 1XwUJN-0000mF-Tv; Thu, 04 Dec 2014 11:11:05 +0000 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XwUJ1-0000We-Jh for linux-arm-kernel@lists.infradead.org; Thu, 04 Dec 2014 11:10:44 +0000 Received: by mail-wg0-f46.google.com with SMTP id a1so14025338wgh.5 for ; Thu, 04 Dec 2014 03:10:21 -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=rm4WLQYwQxYzCYGJKoB+vykT4kMLqCPlIVybUmm2oYw=; b=R/OmVrMi8IzAUtBUhMk8HS4/GRaDpQ51IbXs+uMRc/mhn3dTc84kI4Fw3HNsuEJRsZ nLfJhaiXb2TNI6nlIq9VD7t4hq+bl6fPf2e/KoF4V4gps/vDRqarXOk2c9D2Hg3RWd5g jhojn8C7HxGZoDxRvCrTp+iGGzRd4TgZRqWhPDJkImGPPGZeSO7smM6kbhchQHyjcycO GBUlkQosSz2w1c10ZbTWX2v7yB2xGTLdbjqkIPk58cfK7ZYpoGB8e7jgb8+xGwitVWse RNv6U9fH3GRI30uq3Lg/8y+MZSu0+thRMXQhv24jU2NuuFQCRDE8Dnb4fok+b2wI4V7q V4cg== X-Received: by 10.180.88.33 with SMTP id bd1mr106737592wib.10.1417691421478; Thu, 04 Dec 2014 03:10:21 -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.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Dec 2014 03:10:20 -0800 (PST) From: Dmitry Eremin-Solenikov To: Robert Jarzmik Subject: [PATCH 3/3] ARM: pxa: add regulator_has_full_constraints to spitz board file Date: Thu, 4 Dec 2014 14:10:02 +0300 Message-Id: <1417691402-28166-3-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_031043_826160_B4B7D6CA X-CRM114-Status: GOOD ( 10.22 ) 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 spitz 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 spitz if regulators are enabled: ads7846 spi2.0: unable to get regulator: -517 spi spi2.0: Driver ads7846 requests probe deferral Cc: stable@vger.kernel.org Signed-off-by: Dmitry Eremin-Solenikov --- arch/arm/mach-pxa/spitz.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 840c3a4..f4f713b 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c @@ -970,6 +970,8 @@ static void __init spitz_init(void) spitz_nor_init(); spitz_nand_init(); spitz_i2c_init(); + + regulator_has_full_constraints(); } static void __init spitz_fixup(struct tag *tags, char **cmdline)