aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/xive/common.c
diff options
context:
space:
mode:
authorMichael Ellerman <[email protected]>2024-05-08 00:01:50 +1000
committerMichael Ellerman <[email protected]>2024-05-08 00:05:30 +1000
commitbc8744c6bf0d487dcb7911d093fce60a62cc2654 (patch)
tree5fa257f4243b88510f57e5069e1f4d1c8667e912 /arch/powerpc/sysdev/xive/common.c
parentc330b50d8cae1a7b1fed7622eedacaf652396bb7 (diff)
macintosh/ams: Fix unused variable warning
If both CONFIG_SENSORS_AMS_PMU and CONFIG_SENSORS_AMS_I2C are unset, there is an unused variable warning in the ams driver: drivers/macintosh/ams/ams-core.c: In function 'ams_init': drivers/macintosh/ams/ams-core.c:181:29: warning: unused variable 'np' 181 | struct device_node *np; The driver needs at least one of the configs enabled in order to actually function. So fix the compiler warning by ensuring at least one of the configs is enabled. Suggested-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'arch/powerpc/sysdev/xive/common.c')
0 files changed, 0 insertions, 0 deletions