]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: jz4740: Use the new PM macros
authorPaul Cercueil <paul@crapouillou.net>
Tue, 7 Dec 2021 00:21:01 +0000 (00:21 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 17 Dec 2021 18:19:43 +0000 (19:19 +0100)
commitb52eceb284ee418e4c447e92017cda92691dc3c5
tree92edf2fac05b23a7f66a22cb01d491c53a033062
parentc1d2f1bf7212cb65c7367c3657e37149fe447bab
mmc: jz4740: Use the new PM macros

 - Use DEFINE_SIMPLE_DEV_PM_OPS() instead of the SIMPLE_DEV_PM_OPS()
   macro. This makes it possible to remove the __maybe_unused flags
   on the callback functions.

 - Since we only have callbacks for suspend/resume, we can conditionally
   compile the dev_pm_ops structure for when CONFIG_PM_SLEEP is enabled;
   so use the pm_sleep_ptr() macro instead of pm_ptr().

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/mmc/host/jz4740_mmc.c