diff options
author | Paul Cercueil <paul@crapouillou.net> | 2022-11-29 20:17:17 +0100 |
---|---|---|
committer | Paul Cercueil <paul@crapouillou.net> | 2022-12-12 14:07:01 +0100 |
commit | 10709aa89005fe428764d2e4334d578f502be345 (patch) | |
tree | 0b851baacc3b9e04c4bdd5e123e2fd15ec12eb48 /drivers/clk/starfive | |
parent | drm: atmel-hlcdc: Remove #ifdef guards for PM related functions (diff) | |
download | linux-10709aa89005fe428764d2e4334d578f502be345.tar.xz linux-10709aa89005fe428764d2e4334d578f502be345.zip |
drm: imx/dcss: Remove #ifdef guards for PM related functions
Use the EXPORT_GPL_DEV_PM_OPS() and pm_ptr() macros to handle the PM
callbacks.
These macros allow the PM functions to be automatically dropped by the
compiler when CONFIG_PM is disabled, without having to use #ifdef
guards.
This has the advantage of always compiling these functions in,
independently of any Kconfig option. Thanks to that, bugs and other
regressions are subsequently easier to catch.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Tested-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221129191733.137897-11-paul@crapouillou.net
Diffstat (limited to 'drivers/clk/starfive')
0 files changed, 0 insertions, 0 deletions