aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2023-07-17 17:28:17 +0000
committerAndy Shevchenko <[email protected]>2023-08-21 15:58:10 +0000
commitf0d8d0eea5ed9854b4e4a8973ddced1a8e660a77 (patch)
treee5a19863cd77fc7e7525296e05393b7e7823b264 /drivers/pci/controller/dwc
parentpinctrl: cherryview: Switch to use DEFINE_NOIRQ_DEV_PM_OPS() helper (diff)
downloadkernel-f0d8d0eea5ed9854b4e4a8973ddced1a8e660a77.tar.gz
kernel-f0d8d0eea5ed9854b4e4a8973ddced1a8e660a77.zip
pinctrl: at91: Switch to use DEFINE_NOIRQ_DEV_PM_OPS() helper
Since pm.h provides a helper for system no-IRQ PM callbacks, switch the driver to use it instead of open coded variant. With that switch pm_ptr() to pm_sleep_ptr() as the above mentioned callbacks are only used for system sleep. The use of the pm_sleep_ptr() macro allows the compiler to always see the dev_pm_ops structure and related functions, while still allowing the unused code to be removed, without the need for the __maybe_unused markings. Reviewed-by: Claudiu Beznea <[email protected]> Reviewed-by: Paul Cercueil <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions