diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-25 18:45:49 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-02-15 08:01:51 +0300 |
commit | 6a65b2b2af716854986b6d7d17ce096a949be863 (patch) | |
tree | f5b7bbe9e6286a15c293bc703b54d68acc5942bb /drivers/power/bq25890_charger.c | |
parent | 3f652c969dd223a6ff1df6e9a7052b0424a14167 (diff) | |
download | linux-6a65b2b2af716854986b6d7d17ce096a949be863.tar.xz |
power: collie_battery: hide unused variable
The 'wakeup_enabled' variable in this driver is only accessed
by the optional power management functions and we get a warning
when they are disabled:
drivers/power/collie_battery.c:29:12: error: 'wakeup_enabled' defined but not used [-Werror=unused-variable]
This moves the definition next to the users inside the same #ifdef,
which avoids the warning.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/bq25890_charger.c')
0 files changed, 0 insertions, 0 deletions