summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-st.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2017-03-10 04:17:33 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2017-04-24 21:41:21 +0200
commit9449659d66e2ce03069e89212f5000925058a533 (patch)
tree2db5a886a18eebf05d2f7d362e8e2203318a9662 /drivers/mmc/host/sdhci-st.c
parentmmc: sdhci-pxav2: remove unnecessary platform_set_drvdata() call (diff)
downloadlinux-9449659d66e2ce03069e89212f5000925058a533.tar.xz
linux-9449659d66e2ce03069e89212f5000925058a533.zip
mmc: sdhci-st: remove unnecessary platform_set_drvdata() call
sdhci_pltfm_init() has already set the platform drvdata for us, remove the unnecessary platform_set_drvdata() call. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Acked-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-st.c')
-rw-r--r--drivers/mmc/host/sdhci-st.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-st.c b/drivers/mmc/host/sdhci-st.c
index ed92ce729dde..7fff6490855c 100644
--- a/drivers/mmc/host/sdhci-st.c
+++ b/drivers/mmc/host/sdhci-st.c
@@ -418,8 +418,6 @@ static int sdhci_st_probe(struct platform_device *pdev)
goto err_out;
}
- platform_set_drvdata(pdev, host);
-
host_version = readw_relaxed((host->ioaddr + SDHCI_HOST_VERSION));
dev_info(&pdev->dev, "SDHCI ST Initialised: Host Version: 0x%x Vendor Version 0x%x\n",