projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b47261
)
drivers/misc/apds990x.c: apds990x_chip_on() should depend on CONFIG_PM || CONFIG_PM_R...
author
Geert Uytterhoeven
<
[email protected]
>
Wed, 15 Jun 2011 22:08:59 +0000
(15:08 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 16 Jun 2011 03:04:02 +0000
(20:04 -0700)
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]
>
drivers/misc/apds990x.c
patch
|
blob
|
history
diff --git
a/drivers/misc/apds990x.c
b/drivers/misc/apds990x.c
index 200311fea369e6a952f38b8c205a0fb5c0c01f00..e2a52e5cf449c7f65f97e3e492a8304e321a80df 100644
(file)
--- a/
drivers/misc/apds990x.c
+++ b/
drivers/misc/apds990x.c
@@
-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)
{