linux_old1/drivers/power/reset
Guenter Roeck a538cf04ef power/reset: at91-poweroff: Fix error handling and other compiler warnings
at91_poweroff_get_wakeup_mode can return a negative error code and should
therefore not return an enum type. Similar, its result should not be
assigned to an enum type. Otherwise, the returned value is never negative,
resulting in a compiler warning and a missed error condition, which in turn
results in writing bad values into a chip register.

Also fix other compiler warnings which can be easily avoided.

drivers/power/reset/at91-poweroff.c:74:24:
	warning: type qualifiers ignored on function return type
drivers/power/reset/at91-poweroff.c:74:24:
	warning: no previous prototype for 'at91_poweroff_get_wakeup_mode'
drivers/power/reset/at91-poweroff.c:83:16:
	warning: comparison between signed and unsigned integer expressions
drivers/power/reset/at91-poweroff.c:97:2:
	warning: comparison of unsigned expression < 0 is always false

Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2015-01-21 20:06:44 +01:00
..
Kconfig power: reset: Add reset driver for R-Mobile platforms 2015-01-21 16:32:05 +01:00
Makefile power: reset: Add reset driver for R-Mobile platforms 2015-01-21 16:32:05 +01:00
arm-versatile-reboot.c power: reset: augment versatile driver for integrator 2015-01-20 13:58:27 +01:00
as3722-poweroff.c power: reset: drop owner assignment from platform_drivers 2014-10-20 16:21:28 +02:00
at91-poweroff.c power/reset: at91-poweroff: Fix error handling and other compiler warnings 2015-01-21 20:06:44 +01:00
at91-reset.c ARM: at91: move sdramc/ddrsdr header to include/soc/at91 2014-11-13 12:03:44 +01:00
axxia-reset.c power/reset: axxia: Register with kernel restart handler 2014-11-17 03:07:10 +01:00
brcmstb-reboot.c power supply and reset changes for the v3.19 series 2014-12-15 17:36:45 -08:00
gpio-poweroff.c power: reset: drop owner assignment from platform_drivers 2014-10-20 16:21:28 +02:00
gpio-restart.c power: reset: drop owner assignment from platform_drivers 2014-10-20 16:21:28 +02:00
hisi-reboot.c power/reset: hisi: Register with kernel restart handler 2014-11-17 03:07:10 +01:00
imx-snvs-poweroff.c power: reset: imx-snvs-poweroff: add power off driver for i.mx6 2014-11-23 14:57:11 +08:00
keystone-reset.c power supply and reset changes for the v3.19 series 2014-12-15 17:36:45 -08:00
ltc2952-poweroff.c power: reset: ltc2952: make trigger input optional 2015-01-20 13:58:31 +01:00
msm-poweroff.c power: reset: use restart_notifier mechanism for msm-poweroff 2014-09-26 19:54:33 +02:00
qnap-poweroff.c power: reset: drop owner assignment from platform_drivers 2014-10-20 16:21:28 +02:00
restart-poweroff.c power: reset: drop owner assignment from platform_drivers 2014-10-20 16:21:28 +02:00
rmobile-reset.c power: reset: Add reset driver for R-Mobile platforms 2015-01-21 16:32:05 +01:00
st-poweroff.c power: reset: Add restart functionality for STiH41x platforms 2014-09-26 17:34:15 +02:00
sun6i-reboot.c power: reset: Add Allwinner A31 reset code 2014-05-23 10:40:34 +02:00
syscon-reboot.c power: reset: adjust priority of simple syscon reboot driver 2014-12-03 20:38:30 +01:00
vexpress-poweroff.c power/reset: vexpress: Remove non-DT code 2015-01-21 03:19:54 +01:00
xgene-reboot.c power/reset: xgene: Register with kernel restart handler 2014-11-17 03:07:09 +01:00