From patchwork Thu Dec 18 14:44:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 42457 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9D3DA26C93 for ; Thu, 18 Dec 2014 14:44:50 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id r20sf797846wiv.5 for ; Thu, 18 Dec 2014 06:44:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=YMi8pxKZq0wI4Nh5WkknTK1RHw7FPrnfETq51d9GNpQ=; b=H5BeJXNu0iqXsffX3379+bmRR1MHhwefiMterHYf/Q/5J8jY6yyGnrixiyR1RiTnxD COpfVRpcDU+lJFKjHikgnb8nl0ezsnCx4/P9P7wjH1Ap0j7c5VIuU5ImVUtamRe9BWnz 4jgwQUqVGL2g2ax1quDhq28wclZCzrNQR9kAS07+m47m2w6T6j5ComPtaA5stafwVbwT l4CQ4HK1tsz3ioh/TPZVxCE50MZeX/KHavK+EgLd6ndMC4UO6IEQoH1M5uVkk5PtqVGC sSXQYExYR2CQZS0cL8OjMjwTQItUqqgfO4duiSeWwI997Q3q0Bh9HFyaUN/BluZ6UxCu 7/BQ== X-Gm-Message-State: ALoCoQk9OeP5hSFXSjYeVlmI2ipT0BGpCzhVm2NKy3/xcaF/NS7O2l4seqc5SuI8Wk7Bp4mH8U/4 X-Received: by 10.112.9.199 with SMTP id c7mr392189lbb.7.1418913889921; Thu, 18 Dec 2014 06:44:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.3 with SMTP id ls3ls1147741lac.46.gmail; Thu, 18 Dec 2014 06:44:49 -0800 (PST) X-Received: by 10.112.154.70 with SMTP id vm6mr357338lbb.18.1418913889760; Thu, 18 Dec 2014 06:44:49 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id oi2si1584510lbb.125.2014.12.18.06.44.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 06:44:49 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hs14so1088382lab.39 for ; Thu, 18 Dec 2014 06:44:49 -0800 (PST) X-Received: by 10.112.135.229 with SMTP id pv5mr2669742lbb.52.1418913889669; Thu, 18 Dec 2014 06:44:49 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp1728666lbb; Thu, 18 Dec 2014 06:44:49 -0800 (PST) X-Received: by 10.194.203.104 with SMTP id kp8mr4944575wjc.103.1418913888230; Thu, 18 Dec 2014 06:44:48 -0800 (PST) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com. [209.85.212.170]) by mx.google.com with ESMTPS id x5si13941637wiy.6.2014.12.18.06.44.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 06:44:48 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.170 as permitted sender) client-ip=209.85.212.170; Received: by mail-wi0-f170.google.com with SMTP id bs8so1819889wib.1 for ; Thu, 18 Dec 2014 06:44:48 -0800 (PST) X-Received: by 10.180.228.72 with SMTP id sg8mr25314977wic.48.1418913887937; Thu, 18 Dec 2014 06:44:47 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id a14sm25013698wib.22.2014.12.18.06.44.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Dec 2014 06:44:47 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Chris Ball Cc: Barry Song Subject: [PATCH 2/7] mmc: sdhci-sirf: Remove redundant use of mmc_gpio_free_cd() Date: Thu, 18 Dec 2014 15:44:31 +0100 Message-Id: <1418913876-13937-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418913876-13937-1-git-send-email-ulf.hansson@linaro.org> References: <1418913876-13937-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The MMC core makes use of the devm_* functions while requesting the CD/WP GPIOs, let's rely on that. Cc: Barry Song Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-sirf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-sirf.c b/drivers/mmc/host/sdhci-sirf.c index dd29d47..6981f4d 100644 --- a/drivers/mmc/host/sdhci-sirf.c +++ b/drivers/mmc/host/sdhci-sirf.c @@ -138,9 +138,6 @@ static int sdhci_sirf_remove(struct platform_device *pdev) sdhci_pltfm_unregister(pdev); - if (gpio_is_valid(priv->gpio_cd)) - mmc_gpio_free_cd(host->mmc); - clk_disable_unprepare(priv->clk); return 0; }