Skip to content

Commit 9449659

Browse files
Jisheng Zhangstorulf
authored andcommitted
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>
1 parent 0092faf commit 9449659

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/mmc/host/sdhci-st.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,6 @@ static int sdhci_st_probe(struct platform_device *pdev)
418418
goto err_out;
419419
}
420420

421-
platform_set_drvdata(pdev, host);
422-
423421
host_version = readw_relaxed((host->ioaddr + SDHCI_HOST_VERSION));
424422

425423
dev_info(&pdev->dev, "SDHCI ST Initialised: Host Version: 0x%x Vendor Version 0x%x\n",

0 commit comments

Comments
 (0)