Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5105336imu; Tue, 15 Jan 2019 11:16:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN6RWZ8l0qpNGI2KHb6xdohDdbVM0SJeQr8tk5fL2Vsq5k0bMHRSe/2ghyWiCyr17lSlSIv2 X-Received: by 2002:a17:902:bf03:: with SMTP id bi3mr5652745plb.83.1547579808817; Tue, 15 Jan 2019 11:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547579808; cv=none; d=google.com; s=arc-20160816; b=Flj5ihYKI6ZaLdHSEb8X+dguhZZH/VpSEn5/71E0pd+vJEinNHwMYUNNRdzPtR0v/o IQNNfoJ1mlm71edmX0IdfMhUBx5t10WpToFufaE9K/6hVXJUhx4B5mDwYi4XpesPl4Or 68EwXZ9qJYSZcMN+C1uH8j7Mm6s0+VNpju+64Mkquyv/UiRlWp8BPlBltPlTB7GioR8g lDqRvlB2sTFDGOdRkPlbHomZTqOrnWFz+Q5ff4Tw+YwaY32XtbXY6uPRjFRE7xL+Sd2n wzhwNIXXU+M0RKxLY+L6L0eLd/xMy7LEC5a+5HU4R5VBHMKqWEr8or+rYzBh6vvJzXUQ FrKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5/tGw/9LmJt+4zzLJD+PS3Mr/AlO03DZHBRxJIPTksg=; b=NbBUoy+y8O50ugHBMS+C2mETNgW4Wv8pvh4GnQvs8XfGvsphrZWWirxb/m2fqJVRhd 7n+xc4Ryt9FnFKhCrx0RnieWvOY3kx6x0mzYpkkri2iNqKj0wkjiN569NvvhdQYkN/3D VZPVweEz/s+0vwKpcK9n+hmF1ZyKLqcwVkRGZnrH/U3Vv9TpeqH2+ON4qWuyrRHiYgFI OK4vh0IY1xT005yXBOjcikXiJk9E6GIj+xCt0i8n9FlTG0cbRw5g9fERng9Hp94UPPKR uDlrGqc24DQKiyMzGgS6igFfdbmWGc7F8aCGQQiCqTutA4y8yr9VRT+AlXTOQQGihteo QciA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si4074418pls.30.2019.01.15.11.16.31; Tue, 15 Jan 2019 11:16:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731525AbfAOQ3F (ORCPT + 99 others); Tue, 15 Jan 2019 11:29:05 -0500 Received: from mail.bootlin.com ([62.4.15.54]:57938 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731496AbfAOQ3C (ORCPT ); Tue, 15 Jan 2019 11:29:02 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id A97E320A85; Tue, 15 Jan 2019 17:29:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-37-87.w90-88.abo.wanadoo.fr [90.88.156.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 7209720AA4; Tue, 15 Jan 2019 17:28:50 +0100 (CET) From: Thomas Petazzoni To: Adrian Hunter , Kishon Vijay Abraham I , Ulf Hansson , Thierry Reding , Jonathan Hunter Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Gregory Clement , Thomas Petazzoni Subject: [PATCH 3/3] mmc: sdhci-tegra: drop ->get_ro() implementation Date: Tue, 15 Jan 2019 17:28:37 +0100 Message-Id: <20190115162837.5399-4-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190115162837.5399-1-thomas.petazzoni@bootlin.com> References: <20190115162837.5399-1-thomas.petazzoni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SDHCI core is know properly checking for the state of a WP GPIO, so there is no longer any need for the sdhci-tegra code to implement ->get_ro() using mmc_gpio_get_ro(). Signed-off-by: Thomas Petazzoni --- Note: this patch has only been compiled tested, as I don't have the hardware to test it. --- drivers/mmc/host/sdhci-tegra.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index e6ace31e2a41..6ed7323bf030 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -237,11 +237,6 @@ static void tegra210_sdhci_writew(struct sdhci_host *host, u16 val, int reg) } } -static unsigned int tegra_sdhci_get_ro(struct sdhci_host *host) -{ - return mmc_gpio_get_ro(host->mmc); -} - static bool tegra_sdhci_is_pad_and_regulator_valid(struct sdhci_host *host) { struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); @@ -837,7 +832,6 @@ static void tegra_sdhci_voltage_switch(struct sdhci_host *host) } static const struct sdhci_ops tegra_sdhci_ops = { - .get_ro = tegra_sdhci_get_ro, .read_w = tegra_sdhci_readw, .write_l = tegra_sdhci_writel, .set_clock = tegra_sdhci_set_clock, @@ -893,7 +887,6 @@ static const struct sdhci_tegra_soc_data soc_data_tegra30 = { }; static const struct sdhci_ops tegra114_sdhci_ops = { - .get_ro = tegra_sdhci_get_ro, .read_w = tegra_sdhci_readw, .write_w = tegra_sdhci_writew, .write_l = tegra_sdhci_writel, @@ -947,7 +940,6 @@ static const struct sdhci_tegra_soc_data soc_data_tegra124 = { }; static const struct sdhci_ops tegra210_sdhci_ops = { - .get_ro = tegra_sdhci_get_ro, .read_w = tegra_sdhci_readw, .write_w = tegra210_sdhci_writew, .write_l = tegra_sdhci_writel, @@ -980,7 +972,6 @@ static const struct sdhci_tegra_soc_data soc_data_tegra210 = { }; static const struct sdhci_ops tegra186_sdhci_ops = { - .get_ro = tegra_sdhci_get_ro, .read_w = tegra_sdhci_readw, .write_l = tegra_sdhci_writel, .set_clock = tegra_sdhci_set_clock, -- 2.20.1