PM / devfreq: exynos: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions
authorAnand Moon <linux.amoon@gmail.com>
Wed, 17 Apr 2024 04:44:48 +0000 (10:14 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 8 May 2024 15:30:37 +0000 (00:30 +0900)
commitccad360a2d415447bd6f0de9e873eec05442d159
tree142cf9d8654da02e218c8de7f3485d6e7cd26389
parent8eba5b693442fcfc7bfdd6402cd191250ce3e276
PM / devfreq: exynos: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions

This macro has the advantage over SET_SYSTEM_SLEEP_PM_OPS that we don't
have to care about when the functions are actually used.

Also make use of pm_sleep_ptr() to discard all PM_SLEEP related
stuff if CONFIG_PM_SLEEP isn't enabled.

Link: https://lore.kernel.org/lkml/20240417044459.1908-2-linux.amoon@gmail.com/
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/exynos-bus.c