diff options
author | Akinobu Mita <[email protected]> | 2023-11-18 18:22:00 +0900 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2024-01-08 01:15:49 +0100 |
commit | 3628d999e31e2e31b51f78b0f68e91275854c179 (patch) | |
tree | 584151f1d40e706f99c05725cd43287fbcfc4637 /scripts/gdb/linux/utils.py | |
parent | cd0d7d6639de4468d181c87e45cfd07d51b525da (diff) |
rtc: ds3232: avoid unused-const-variable warning
Fix the following warning when CONFIG_I2C is not set but CONFIG_SPI_MASTER
is set.
warning: 'ds3232_pm_ops' defined but not used [-Wunused-const-variable=]
'ds3232_pm_ops' is only used by rtc-ds3232 i2c driver, so move the device
PM callbacks inside #if IS_ENABLED(CONFIG_I2C).
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Akinobu Mita <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions