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: 3577441 Return-Path: X-Original-To: patchwork-linux-spi@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 5FCC29F2F5 for ; Tue, 4 Feb 2014 16:03:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A8A9420158 for ; Tue, 4 Feb 2014 16:03:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AF8A520170 for ; Tue, 4 Feb 2014 16:03:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754760AbaBDQCl (ORCPT ); Tue, 4 Feb 2014 11:02:41 -0500 Received: from mail-la0-f48.google.com ([209.85.215.48]:35170 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932161AbaBDP7q (ORCPT ); Tue, 4 Feb 2014 10:59:46 -0500 Received: by mail-la0-f48.google.com with SMTP id mc6so6653031lab.35 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=i6j3JG4ELiwy3RoepLo/sDhK361WxmeWzTEda46PpzhboWlITKHOifttn3lZ8YHlq1 mzOIEaDTQ9v8f2J1vdLjdItm6w6a/PF9ns36svFDrabjtDnOP7cDvjcf6Vs/ldA2/J/y 96xgTsVbsLTYNaqMigCt6X3EI4h653XTdODIqwUQVvD/wgE8XBo9t2yN2eqH3ATBBPNu SzodOQ22/I5l/fdI0cz9Nstzon2aWQdTTDFelNS798TEFZu9CKYJryzCmtSvSXnM1+eM fQuNQvpLtYZ14RX+EvONni87aKHZzM7vGHss1Ty9/y0A2lLrpAs/2yX86kN+/GWEZHHL 2gmA== X-Gm-Message-State: ALoCoQlDtrGKY+itq6WkIs4DcHXRJKMiECewb/uPjBhjAfUknd77he+zF22F7mncSVJZUrogCHEV 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 Cc: Alessandro Rubini , Linus Walleij , Wolfram Sang , Chris Ball , Mark Brown , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, linux-mmc@vger.kernel.org, Ulf Hansson 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> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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