Skip to content

Commit f2ea5e1

Browse files
committed
power / PM: Eliminate CONFIG_PM_RUNTIME
After commit b2b49cc (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks depending on CONFIG_PM_RUNTIME within #ifdef blocks depending on CONFIG_PM may be dropped now. Do that in drivers/power/pm2301_charger.c. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent e8a9235 commit f2ea5e1

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎drivers/power/pm2301_charger.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,6 @@ static int pm2xxx_wall_charger_suspend(struct device *dev)
951951

952952
#endif
953953

954-
#ifdef CONFIG_PM_RUNTIME
955-
956954
static int pm2xxx_runtime_suspend(struct device *dev)
957955
{
958956
struct i2c_client *pm2xxx_i2c_client = to_i2c_client(dev);
@@ -977,8 +975,6 @@ static int pm2xxx_runtime_resume(struct device *dev)
977975
return 0;
978976
}
979977

980-
#endif
981-
982978
static const struct dev_pm_ops pm2xxx_pm_ops = {
983979
SET_SYSTEM_SLEEP_PM_OPS(pm2xxx_wall_charger_suspend,
984980
pm2xxx_wall_charger_resume)

0 commit comments

Comments
 (0)