diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-25 16:45:49 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-02-15 06:01:51 +0100 |
commit | 6a65b2b2af716854986b6d7d17ce096a949be863 (patch) | |
tree | f5b7bbe9e6286a15c293bc703b54d68acc5942bb /drivers/power/max77693_charger.c | |
parent | power/reset: versatile: support the actual versatile (diff) | |
download | linux-6a65b2b2af716854986b6d7d17ce096a949be863.tar.xz linux-6a65b2b2af716854986b6d7d17ce096a949be863.zip |
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/max77693_charger.c')
0 files changed, 0 insertions, 0 deletions