mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-06 10:49:18 -05:00
drivers/misc/apds990x.c: apds990x_chip_on() should depend on CONFIG_PM || CONFIG_PM_RUNTIME
Fixes this warning: drivers/misc/apds990x.c: At top level: drivers/misc/apds990x.c:613: warning: `apds990x_chip_on' defined but not used Signed-off-by: Geert Uytterhoeven <[email protected]> Cc: Samu Onkalo <[email protected]> Cc: Jonathan Cameron <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2b472611a3
commit
ec8f9ceace
1 changed files with 2 additions and 0 deletions
|
|
@ -609,6 +609,7 @@ static int apds990x_detect(struct apds990x_chip *chip)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_PM) || defined(CONFIG_PM_RUNTIME)
|
||||
static int apds990x_chip_on(struct apds990x_chip *chip)
|
||||
{
|
||||
int err = regulator_bulk_enable(ARRAY_SIZE(chip->regs),
|
||||
|
|
@ -624,6 +625,7 @@ static int apds990x_chip_on(struct apds990x_chip *chip)
|
|||
apds990x_mode_on(chip);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int apds990x_chip_off(struct apds990x_chip *chip)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue