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: 5514241 Return-Path: X-Original-To: patchwork-linux-mmc@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 A8DF79F326 for ; Thu, 18 Dec 2014 14:44:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E65E720A29 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 1975A20A26 for ; Thu, 18 Dec 2014 14:44:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751355AbaLROot (ORCPT ); Thu, 18 Dec 2014 09:44:49 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:59060 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751833AbaLROot (ORCPT ); Thu, 18 Dec 2014 09:44:49 -0500 Received: by mail-wg0-f44.google.com with SMTP id b13so1825906wgh.31 for ; Thu, 18 Dec 2014 06:44:48 -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=YMi8pxKZq0wI4Nh5WkknTK1RHw7FPrnfETq51d9GNpQ=; b=FTunKNG1GOQqqF+tL5seHmkYajK4UiKBkBtCW6tOiXP9Q1oDAFGfO5o4+5Ph3ZOoxq tTkjYl0zB9MlYibh8C8fLhaIGJ7939Xi91jpF7vxldG7LYFkDucFGl1n+GZ7o/7q3WHn DVdjPjdUdQoJVk5w2Tbc5TTzeQIqeJv22M+sNHa+H2QH0v4gmW5EVCLVEJyw2qjQa186 rntMFb7QU/fDxwdy/BTcKAPKs9HIGMeqGy7ORA+w3pC8U12SlkZQQQtJKbn93IAe1uSE 0yu/nXpKDr4GLbzHHdWXw0dEkDDjNV2bCvCLTywkG+4+FBT2YB0OiJNgcpfcsA342jfH AnEg== X-Gm-Message-State: ALoCoQkACjhAch80/ZKK1QZJek2WsOqwVpVS17p9KUy6o3G3V1VyghL328Lth2zC1dlh/Gqq3VmB 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> 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: 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; }