Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <geert@linux-m68k.org>
Cc: Samu Onkalo <samu.p.onkalo@nokia.com>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Geert Uytterhoeven and committed by
Linus Torvalds
ec8f9cea 2b472611

+2
+2
drivers/misc/apds990x.c
··· 609 609 return ret; 610 610 } 611 611 612 + #if defined(CONFIG_PM) || defined(CONFIG_PM_RUNTIME) 612 613 static int apds990x_chip_on(struct apds990x_chip *chip) 613 614 { 614 615 int err = regulator_bulk_enable(ARRAY_SIZE(chip->regs), ··· 625 624 apds990x_mode_on(chip); 626 625 return 0; 627 626 } 627 + #endif 628 628 629 629 static int apds990x_chip_off(struct apds990x_chip *chip) 630 630 {