Message ID | 20190423075020.173734-18-wangkefeng.wang@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | None | expand |
On Tue, 23 Apr 2019 at 09:40, Kefeng Wang <wangkefeng.wang@huawei.com> wrote: > > Using dev_get_drvdata directly. > > Cc: Ulf Hansson <ulf.hansson@linaro.org> > Cc: Linus Walleij <linus.walleij@linaro.org> > Cc: linux-mmc@vger.kernel.org > Cc: linux-omap@vger.kernel.org > Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/omap_hsmmc.c | 4 ++-- > 1 file 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"); > > -- > 2.20.1 >
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");
Using dev_get_drvdata directly. Cc: Ulf Hansson <ulf.hansson@linaro.org> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: linux-mmc@vger.kernel.org Cc: linux-omap@vger.kernel.org Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- drivers/mmc/host/omap_hsmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)