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: 5514231 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E6E11BEEA8 for ; Thu, 18 Dec 2014 14:44:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 18A3520A25 for ; Thu, 18 Dec 2014 14:44:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 73A0220A29 for ; Thu, 18 Dec 2014 14:44:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751967AbaLROot (ORCPT ); Thu, 18 Dec 2014 09:44:49 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:35196 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751355AbaLROos (ORCPT ); Thu, 18 Dec 2014 09:44:48 -0500 Received: by mail-wg0-f52.google.com with SMTP id x12so1805225wgg.25 for ; Thu, 18 Dec 2014 06:44:47 -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=0upoT1B1KGw4JmzjBv3p6Zguws11GLTOiHftePUrNCw=; b=d2PMACAmvnivM2HNyzHtnTfrBgtKmo6uIqt5hfvO0hHTgdETNpaE4tTzlaPZPIB8WQ hG6KGIICwJuavMnkUs0Xd0gqrln/snClX7QLLfkM/wZgk+iFYNEZv0C3Q6UNlaogqqju LLAKevM+H+jUWIj5BknOtaTPAgNTFSCd1ypooV+30Z1BWfWQJdtR1JEEEqwLZF4xUZob kA7/UBPoMddsYrd2WiGbyjWFcJQr7plhAc0jZKSjs07X/cW6uJ1LZnPTP30gKeALpFie SSgKKKgo8c+cMzmBz/XTAhCqNyAYQoUQtXElADON9Yyd+6HNCjDGLmqwlK32BgyUuHpp dQIw== X-Gm-Message-State: ALoCoQmdyUv8bo9GC4Da4fMpmiDr9UmpWoCJrBFXohjyCY85z1NyhM7vACYZxJRLNKlZiiCvKjZU 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> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 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);