From patchwork Tue Feb 4 15:58:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 3578241 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 44A3B9F2F5 for ; Tue, 4 Feb 2014 17:07:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 770DC2012E for ; Tue, 4 Feb 2014 17:07:09 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 8D38020103 for ; Tue, 4 Feb 2014 17:07:08 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WAiSK-0002Kh-M6; Tue, 04 Feb 2014 16:02:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WAiRN-0006Lj-Jz; Tue, 04 Feb 2014 16:01:37 +0000 Received: from mail-la0-f47.google.com ([209.85.215.47]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WAiPv-00066A-Ax for linux-arm-kernel@lists.infradead.org; Tue, 04 Feb 2014 16:00:08 +0000 Received: by mail-la0-f47.google.com with SMTP id hr17so6650538lab.34 for ; Tue, 04 Feb 2014 07:59:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tVfOcSz+JQT+jlgnyeSvaXa1csZ+bH4QZ8+zR/mUbcQ=; b=DLg/P2eLjtfbCF1n6XHgzVlFKW2yr5U2rLCdW3NZ7hdx51NWALeZoxzIz3tpsQVBNq nHm39rTlsyXH+MHSqQy6Y+TRfUImp1QCHsdbx4Wh2fiHNI7GSYLM//ZNG1XPZSmbSR7K 8aybWdt6N1CMQrwPoCF5VB8FgHGYaE0RaI8nwc9DxdBuugcFvfbBPLyqAGaDIP2a/cgy b05rkVxEwMqgeggeCcwHEtMC7T1TAlyLGrW12AIQZGvZa77YKdS66cXJ+wGkdseWJSB4 b7wafXM4c6tMwaM6ng0NfJCoULjuqqK9srSpLnAT1qJovDL0Wb2zXxxDHXc0kbWq4cha krXA== X-Gm-Message-State: ALoCoQn/C7rm2dmKg/HSLVn6HMg8cUTSs/cJ+Epa+GkmN66O4KAHcWfZrviKBsS7izFmn4Obirpu X-Received: by 10.152.22.1 with SMTP id z1mr2442106lae.39.1391529585114; Tue, 04 Feb 2014 07:59:45 -0800 (PST) Received: from localhost.localdomain (host-95-199-220-119.mobileonline.telia.com. [95.199.220.119]) by mx.google.com with ESMTPSA id dm8sm35906603lad.7.2014.02.04.07.59.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 07:59:44 -0800 (PST) From: Ulf Hansson To: Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH 10/17] spi: pl022: Remove redundant pinctrl to default state in probe Date: Tue, 4 Feb 2014 16:58:51 +0100 Message-Id: <1391529538-21685-11-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391529538-21685-1-git-send-email-ulf.hansson@linaro.org> References: <1391529538-21685-1-git-send-email-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140204_110007_562367_7302AD1C X-CRM114-Status: GOOD ( 10.83 ) X-Spam-Score: -2.6 (--) Cc: Ulf Hansson , Wolfram Sang , Linus Walleij , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Ball , Mark Brown , linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, Alessandro Rubini X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 The driver core is now taking care of putting our pins into default state at probe. Thus we can remove the redundant call for it in probe. Cc: Mark Brown Signed-off-by: Ulf Hansson Acked-by: Linus Walleij --- drivers/spi/spi-pl022.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 2f44c81..3ddd8da 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -2109,8 +2109,6 @@ static int pl022_probe(struct amba_device *adev, const struct amba_id *id) pl022->chipselects = devm_kzalloc(dev, num_cs * sizeof(int), GFP_KERNEL); - pinctrl_pm_select_default_state(dev); - /* * Bus Number Which has been Assigned to this SSP controller * on this board