From patchwork Thu Dec 18 14:44:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 42456 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4921726C8B for ; Thu, 18 Dec 2014 14:44:50 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id y19sf852863wgg.11 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=0upoT1B1KGw4JmzjBv3p6Zguws11GLTOiHftePUrNCw=; b=PefYhyO6YYM+fuQ4hnM4XzVnwcoblBwlzyiiczCp2O4U6gcJF7nCC7uxpvS3ljF8BD LyEzbYCDPQa0gQb/3REZHXjNyqZZuEdIJsdhvuaTmfSOvI2aPUktDiljSSlxDe+R6AEe QSW/pxnXxbK4ifAaNxE9P1gVT1N9fBwFdm8HxFSn3Zg7aCkI2YSX6lu4TVcYTFP8pfpj M1N1SBNdvOBGb3SFWofhIjpr9sMBxb3bwCtCvdZ744DKxY41RJ9CyQknOPT/0JhqT9Vv 1Ow/pK7r0IereGb+SuYktcQlWWUBWPdWrqNo5Ls6fwhqho7+j0k6isOqdQSZd4S0BJ9c n2rQ== X-Gm-Message-State: ALoCoQkaswfITKluZ3637MlZ1XbFKd81OqAfHdaqBWz2I2KLnyFHwnowuTWpadI5pjBQnS7rSK+F X-Received: by 10.112.168.70 with SMTP id zu6mr379146lbb.8.1418913889523; Thu, 18 Dec 2014 06:44:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.71 with SMTP id k7ls630210laf.9.gmail; Thu, 18 Dec 2014 06:44:49 -0800 (PST) X-Received: by 10.112.135.197 with SMTP id pu5mr2668121lbb.22.1418913889255; Thu, 18 Dec 2014 06:44:49 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id un3si7133273lbb.21.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 patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id gd6so1142937lab.3 for ; Thu, 18 Dec 2014 06:44:48 -0800 (PST) X-Received: by 10.112.98.99 with SMTP id eh3mr2644487lbb.32.1418913888832; Thu, 18 Dec 2014 06:44:48 -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 ru5csp1728659lbb; Thu, 18 Dec 2014 06:44:48 -0800 (PST) X-Received: by 10.194.62.19 with SMTP id u19mr5469709wjr.0.1418913888010; Thu, 18 Dec 2014 06:44:48 -0800 (PST) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com. [209.85.212.179]) by mx.google.com with ESMTPS id lf2si12429608wjb.24.2014.12.18.06.44.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 06:44:47 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.179 as permitted sender) client-ip=209.85.212.179; Received: by mail-wi0-f179.google.com with SMTP id ex7so2046607wid.12 for ; Thu, 18 Dec 2014 06:44:47 -0800 (PST) X-Received: by 10.180.20.50 with SMTP id k18mr5915864wie.31.1418913886349; Thu, 18 Dec 2014 06:44:46 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id a14sm25013698wib.22.2014.12.18.06.44.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Dec 2014 06:44:45 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Chris Ball Cc: Nicolas Pitre Subject: [PATCH 1/7] mmc: mvsdio: Remove redundant use of mmc_gpio_free_cd|ro() Date: Thu, 18 Dec 2014 15:44:30 +0100 Message-Id: <1418913876-13937-2-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.44 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: Nicolas Pitre Signed-off-by: Ulf Hansson --- drivers/mmc/host/mvsdio.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index 4f8618f..b6ec91f 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvsdio.c @@ -828,8 +828,6 @@ static int mvsd_probe(struct platform_device *pdev) out: if (mmc) { - mmc_gpio_free_cd(mmc); - mmc_gpio_free_ro(mmc); if (!IS_ERR(host->clk)) clk_disable_unprepare(host->clk); mmc_free_host(mmc); @@ -844,8 +842,6 @@ static int mvsd_remove(struct platform_device *pdev) struct mvsd_host *host = mmc_priv(mmc); - mmc_gpio_free_cd(mmc); - mmc_gpio_free_ro(mmc); mmc_remove_host(mmc); del_timer_sync(&host->timer); mvsd_power_down(host);