diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2019-04-23 09:50:12 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2019-05-06 11:55:39 +0200 |
commit | 7fc13b879fdd4fec75ffe6cd8770d512c3d6420f (patch) | |
tree | 6145ede144187117dc3c0fc47826aa4dda0478bc /drivers/mmc/host/omap_hsmmc.c | |
parent | mmc: alcor: work with multiple-entry sglists (diff) | |
download | linux-7fc13b879fdd4fec75ffe6cd8770d512c3d6420f.tar.xz linux-7fc13b879fdd4fec75ffe6cd8770d512c3d6420f.zip |
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>
Diffstat (limited to 'drivers/mmc/host/omap_hsmmc.c')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 29a1ddaa7466..952fa4063ff8 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -2077,7 +2077,7 @@ static int omap_hsmmc_runtime_suspend(struct device *dev) unsigned long flags; int ret = 0; - host = platform_get_drvdata(to_platform_device(dev)); + host = dev_get_drvdata(dev); omap_hsmmc_context_save(host); dev_dbg(dev, "disabled\n"); @@ -2118,7 +2118,7 @@ static int omap_hsmmc_runtime_resume(struct device *dev) struct omap_hsmmc_host *host; unsigned long flags; - host = platform_get_drvdata(to_platform_device(dev)); + host = dev_get_drvdata(dev); omap_hsmmc_context_restore(host); dev_dbg(dev, "enabled\n"); |