diff options
| author | Raag Jadav <[email protected]> | 2024-02-08 07:05:29 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2024-02-15 11:27:50 +0000 |
| commit | 7cfce2b80d5ff7aa713a7710bfe3a562707cb226 (patch) | |
| tree | 58780485e1b092fc66ed2cd4553780f3fe4ef3ac /drivers/pwm/pwm-dwc.c | |
| parent | pwm: sti: Fix capture for st,pwm-num-chan < st,capture-num-chan (diff) | |
| download | kernel-7cfce2b80d5ff7aa713a7710bfe3a562707cb226.tar.gz kernel-7cfce2b80d5ff7aa713a7710bfe3a562707cb226.zip | |
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 <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-dwc.c')
| -rw-r--r-- | drivers/pwm/pwm-dwc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-dwc.c b/drivers/pwm/pwm-dwc.c index 4929354f8cd9..a4a057ae03ea 100644 --- a/drivers/pwm/pwm-dwc.c +++ b/drivers/pwm/pwm-dwc.c @@ -120,7 +120,7 @@ static struct pci_driver dwc_pwm_driver = { .remove = dwc_pwm_remove, .id_table = dwc_pwm_id_table, .driver = { - .pm = pm_ptr(&dwc_pwm_pm_ops), + .pm = pm_sleep_ptr(&dwc_pwm_pm_ops), }, }; |
