diff options
author | Yuvaraj Kumar C D <yuvaraj.cd@gmail.com> | 2013-08-30 17:12:19 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-09-26 03:32:40 +0200 |
commit | 002f0d5c63e9f37347864c1c9f5656c3cfdb6947 (patch) | |
tree | 7d8b9f92fb051be554f441477f4cc18581852f93 /drivers/mmc/host/dw_mmc-pltfm.c | |
parent | mmc: dw_mmc: socfpga: move socfpga private init (diff) | |
download | linux-002f0d5c63e9f37347864c1c9f5656c3cfdb6947.tar.xz linux-002f0d5c63e9f37347864c1c9f5656c3cfdb6947.zip |
mmc: dw_mmc: move the platform specific init call
Current platform specific private data initialization call
dw_mci_exynos_priv_init() can be used to do platform specific
initialization of SMU and others in future. So the drv_data->init
call has moved to dw_mci_probe().
Signed-off-by: Yuvaraj Kumar C D <yuvaraj.cd@samsung.com>
Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc-pltfm.c')
-rw-r--r-- | drivers/mmc/host/dw_mmc-pltfm.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c index 20897529ea5e..5c4965655297 100644 --- a/drivers/mmc/host/dw_mmc-pltfm.c +++ b/drivers/mmc/host/dw_mmc-pltfm.c @@ -39,7 +39,6 @@ int dw_mci_pltfm_register(struct platform_device *pdev, { struct dw_mci *host; struct resource *regs; - int ret; host = devm_kzalloc(&pdev->dev, sizeof(struct dw_mci), GFP_KERNEL); if (!host) @@ -59,12 +58,6 @@ int dw_mci_pltfm_register(struct platform_device *pdev, if (IS_ERR(host->regs)) return PTR_ERR(host->regs); - if (drv_data && drv_data->init) { - ret = drv_data->init(host); - if (ret) - return ret; - } - platform_set_drvdata(pdev, host); return dw_mci_probe(host); } |