mmc: sdhci: remove unnecessary platform_set_drvdata() call
Subsystems (3)
cover mmc: sdhci: remove unnecessary platform_set_drvdata() call
sdhci_pltfm_init() has already set the platform drvdata for us, so its users doesn't need to set the drvdata again. These patches clean up all unnecessary platform_set_drvdata() call.
Jisheng Zhang (3):
mmc: sdhci-pxav3: remove unnecessary platform_set_drvdata() call
mmc: sdhci-pxav2: remove unnecessary platform_set_drvdata() call
mmc: sdhci-st: remove unnecessary platform_set_drvdata() call
drivers/mmc/host/sdhci-pxav2.c | 2 -- drivers/mmc/host/sdhci-pxav3.c | 2 -- drivers/mmc/host/sdhci-st.c | 2 -- 3 files changed, 6 deletions(-)
Signature · 1 line
2.11.0
PATCH 1/3 mmc: sdhci-pxav3: remove unnecessary platform_set_drvdata() call
sdhci_pltfm_init() has already set the platform drvdata for us, remove the unnecessary platform_set_drvdata() call.
--- drivers/mmc/host/sdhci-pxav3.c | 2 -- 1 file changed, 2 deletions(-)
drivers/mmc/host/sdhci-pxav3.c +0 -2
@@ -480,8 +480,6 @@ static int sdhci_pxav3_probe(struct platform_device *pdev) goto err_add_host; } -platform_set_drvdata (pdev, host); -if (host->mmc->pm_caps &MMC_PM_WAKE_SDIO_IRQ )device_init_wakeup (&pdev->dev,1 );
Signature · 1 line
2.11.0
PATCH 2/3 mmc: sdhci-pxav2: remove unnecessary platform_set_drvdata() call
In reply to Jisheng Zhangsdhci_pltfm_init() has already set the platform drvdata for us, remove the unnecessary platform_set_drvdata() call.
--- drivers/mmc/host/sdhci-pxav2.c | 2 -- 1 file changed, 2 deletions(-)
drivers/mmc/host/sdhci-pxav2.c +0 -2
@@ -222,8 +222,6 @@ static int sdhci_pxav2_probe(struct platform_device *pdev) goto err_add_host; } -platform_set_drvdata (pdev, host); -return 0 ; err_add_host:
Signature · 1 line
2.11.0
PATCH 3/3 mmc: sdhci-st: remove unnecessary platform_set_drvdata() call
In reply to Jisheng Zhangsdhci_pltfm_init() has already set the platform drvdata for us, remove the unnecessary platform_set_drvdata() call.
--- drivers/mmc/host/sdhci-st.c | 2 -- 1 file changed, 2 deletions(-)
drivers/mmc/host/sdhci-st.c +0 -2
@@ -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",
Signature · 1 line
2.11.0
Re: [PATCH 3/3] mmc: sdhci-st: remove unnecessary platform_set_drvdata() call
Hi Jisheng
Quoted 14 lines · Jisheng Zhang
sdhci_pltfm_init()has already set the platform drvdata for us, remove the unnecessaryplatform_set_drvdata()call.Signed-off-by Jisheng Zhang <[email protected]>--- drivers/mmc/host/sdhci-st.c | 2 -- 1 file changed, 2 deletions(-)drivers/mmc/host/sdhci-st.c +0
-0
drivers/mmc/host/sdhci-st.c static int sdhci_st_probe(struct platform_device *pdev) · line 423
Quoted 8 lines
drivers/mmc/host/sdhci-st.c +0
-2@@ -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",
Thanks
Ulf Hansson
AppliedQuoted 9 lines · Jisheng Zhang
sdhci_pltfm_init()has already set the platform drvdata for us, so its users doesn't need to set the drvdata again. These patches clean up all unnecessaryplatform_set_drvdata()call.Jisheng Zhang (3):
mmc: sdhci-pxav3: remove unnecessaryplatform_set_drvdata()call
mmc: sdhci-pxav2: remove unnecessaryplatform_set_drvdata()call
mmc: sdhci-st: remove unnecessaryplatform_set_drvdata()call
Quoted 8 lines
drivers/mmc/host/sdhci-pxav2.c | 2 -- drivers/mmc/host/sdhci-pxav3.c | 2 -- drivers/mmc/host/sdhci-st.c | 2 -- 3 files changed, 6 deletions(-)--
2.11.0
Thanks, applied for next!
Kind regards
Uffe