Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec8f9cea authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds
Browse files

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Cc: Samu Onkalo <samu.p.onkalo@nokia.com>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2b472611
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -609,6 +609,7 @@ static int apds990x_detect(struct apds990x_chip *chip)
	return ret;
	return ret;
}
}


#if defined(CONFIG_PM) || defined(CONFIG_PM_RUNTIME)
static int apds990x_chip_on(struct apds990x_chip *chip)
static int apds990x_chip_on(struct apds990x_chip *chip)
{
{
	int err	 = regulator_bulk_enable(ARRAY_SIZE(chip->regs),
	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);
	apds990x_mode_on(chip);
	return 0;
	return 0;
}
}
#endif


static int apds990x_chip_off(struct apds990x_chip *chip)
static int apds990x_chip_off(struct apds990x_chip *chip)
{
{