]> git.ipfire.org Git - thirdparty/linux.git/commit
mmc: block: Convert to use DEFINE_SIMPLE_DEV_PM_OPS()
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 30 Mar 2026 03:28:30 +0000 (11:28 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 31 Mar 2026 10:41:31 +0000 (12:41 +0200)
commit554b0674f22feb76d9198f2f1fa23b610f548548
tree63f6bb12a0eb41b23184c2eb4506206fa9a024f0
parenta38ad7e173bc68c54f7afae7f669a824e313b1bb
mmc: block: Convert to use DEFINE_SIMPLE_DEV_PM_OPS()

Convert to use DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() to drop the
CONFIG_PM_SLEEP to handle the conditional compilation when PM support is
disabled. This allows the compiler to automatically optimize away the
unused code paths when CONFIG_PM_SLEEP is not selected.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c