]> git.karo-electronics.de Git - linux-beck.git/commit
power: collie_battery: hide unused variable
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2016 15:45:49 +0000 (16:45 +0100)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Feb 2016 05:01:51 +0000 (06:01 +0100)
commit6a65b2b2af716854986b6d7d17ce096a949be863
treef5b7bbe9e6286a15c293bc703b54d68acc5942bb
parent3f652c969dd223a6ff1df6e9a7052b0424a14167
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>
drivers/power/collie_battery.c