Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pwm: dwc: use pm_sleep_ptr() macro

Since we don't have runtime PM handles here, we should be using
pm_sleep_ptr() macro, so that the compiler can discard it in case
CONFIG_PM_SLEEP=n.

Fixes: 30b5b066fa83 ("pwm: dwc: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240212130247.9985-2-raag.jadav@intel.com
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

authored by

Raag Jadav and committed by
Uwe Kleine-König
7cfce2b8 5f623835

+1 -1
+1 -1
drivers/pwm/pwm-dwc.c
··· 120 120 .remove = dwc_pwm_remove, 121 121 .id_table = dwc_pwm_id_table, 122 122 .driver = { 123 - .pm = pm_ptr(&dwc_pwm_pm_ops), 123 + .pm = pm_sleep_ptr(&dwc_pwm_pm_ops), 124 124 }, 125 125 }; 126 126