mmc: tmio: Avoid boilerplate code in ->runtime_suspend()
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 16 Oct 2019 13:16:34 +0000 (15:16 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Nov 2019 10:41:50 +0000 (11:41 +0100)
commit1b32999e205bb5804400aaa61441ecb356381402
tree1d3654226435a7dc7df450d2afd6c0ab53551d48
parentea71c59669f17d032f11b13ea8a025cea365584f
mmc: tmio: Avoid boilerplate code in ->runtime_suspend()

Rather than checking the 'runtime_synced' flag each time the
->runtime_suspend() callback is invoked, let's convert into using
dev_pm_domain_start() during ->probe() and drop the corresponding
boilerplate code.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_core.c