mmc: omap_hsmmc: Use dev_get_drvdata()

Using dev_get_drvdata directly.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Kefeng Wang 2019-04-23 15:50:12 +08:00 коммит произвёл Ulf Hansson
Родитель c671b6dede
Коммит 7fc13b879f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -2077,7 +2077,7 @@ static int omap_hsmmc_runtime_suspend(struct device *dev)
unsigned long flags; unsigned long flags;
int ret = 0; int ret = 0;
host = platform_get_drvdata(to_platform_device(dev)); host = dev_get_drvdata(dev);
omap_hsmmc_context_save(host); omap_hsmmc_context_save(host);
dev_dbg(dev, "disabled\n"); dev_dbg(dev, "disabled\n");
@ -2118,7 +2118,7 @@ static int omap_hsmmc_runtime_resume(struct device *dev)
struct omap_hsmmc_host *host; struct omap_hsmmc_host *host;
unsigned long flags; unsigned long flags;
host = platform_get_drvdata(to_platform_device(dev)); host = dev_get_drvdata(dev);
omap_hsmmc_context_restore(host); omap_hsmmc_context_restore(host);
dev_dbg(dev, "enabled\n"); dev_dbg(dev, "enabled\n");