From patchwork Tue Apr 12 03:09:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wills Wang X-Patchwork-Id: 609228 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3qkX7W2Rlzz9t3h for ; Tue, 12 Apr 2016 13:13:11 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0DC0BA74DE; Tue, 12 Apr 2016 05:13:10 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YXqNXv163Sqf; Tue, 12 Apr 2016 05:13:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AA907A752C; Tue, 12 Apr 2016 05:13:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B4CE5A75C8 for ; Tue, 12 Apr 2016 05:13:07 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eG85Xeq3rkF8 for ; Tue, 12 Apr 2016 05:13:07 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from BLU004-OMC4S29.hotmail.com (blu004-omc4s29.hotmail.com [65.55.111.168]) by theia.denx.de (Postfix) with ESMTPS id A5A95A75D5 for ; Tue, 12 Apr 2016 05:12:59 +0200 (CEST) Received: from BLU436-SMTP196 ([65.55.111.137]) by BLU004-OMC4S29.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Mon, 11 Apr 2016 20:12:58 -0700 X-TMN: [WZGmO4lwaw7BHzpjPdHBzYY2gRHYsYLw] X-Originating-Email: [wills.wang@live.com] Message-ID: From: Wills Wang To: u-boot@lists.denx.de Date: Tue, 12 Apr 2016 11:09:18 +0800 X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460430561-4291-1-git-send-email-wills.wang@live.com> References: <1460430561-4291-1-git-send-email-wills.wang@live.com> X-OriginalArrivalTime: 12 Apr 2016 03:12:56.0855 (UTC) FILETIME=[35FAA270:01D19469] MIME-Version: 1.0 Cc: marex@denx.de, Jagan Teki Subject: [U-Boot] [PATCH 1/4] ath79: spi: Remove the explicit pinctrl setting X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The correct pinctrl is handled automatically so we don't need to do it in the driver. Signed-off-by: Wills Wang Reviewed-by: Simon Glass --- drivers/spi/ath79_spi.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/spi/ath79_spi.c b/drivers/spi/ath79_spi.c index 0c1022d..b18c733 100644 --- a/drivers/spi/ath79_spi.c +++ b/drivers/spi/ath79_spi.c @@ -175,19 +175,7 @@ static int ath79_spi_set_mode(struct udevice *bus, uint mode) static int ath79_spi_probe(struct udevice *bus) { struct ath79_spi_priv *priv = dev_get_priv(bus); - struct udevice *pinctrl; fdt_addr_t addr; - int ret; - - ret = uclass_get_device(UCLASS_PINCTRL, 0, &pinctrl); - if (ret) - return ret; - ret = pinctrl_get_periph_id(pinctrl, bus); - if (ret < 0) - return ret; - ret = pinctrl_request(pinctrl, ret, 0); - if (ret < 0) - return ret; addr = dev_get_addr(bus); if (addr == FDT_ADDR_T_NONE)