diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-25 15:45:49 (GMT) |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-02-15 05:01:51 (GMT) |
commit | 6a65b2b2af716854986b6d7d17ce096a949be863 (patch) | |
tree | f5b7bbe9e6286a15c293bc703b54d68acc5942bb /crypto/jitterentropy-kcapi.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 'crypto/jitterentropy-kcapi.c')
0 files changed, 0 insertions, 0 deletions