kernel_optimize_test/drivers/power
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
..
avs
reset power/reset: at91-poweroff: Fix error handling and other compiler warnings 2015-01-21 20:06:44 +01:00
88pm860x_battery.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
88pm860x_charger.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
ab8500_bmdata.c
ab8500_btemp.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
ab8500_charger.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
ab8500_fg.c power: ab8500_fg.c: Remove unused function 2015-01-21 14:06:48 +01:00
abx500_chargalg.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
apm_power.c
bq27x00_battery.c bq27x00_battery: Call power_supply_changed only when capacity changed 2015-01-21 20:03:31 +01:00
bq2415x_charger.c power: bq2415x_charger: Fix memory leak on DTS parsing error 2014-10-28 03:30:18 +01:00
bq24190_charger.c power: bq24190_charger: suppress build warning 2015-01-21 16:59:28 +01:00
bq24735-charger.c
charger-manager.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
collie_battery.c power: collie_battery: support generating wakeup event 2015-01-20 13:58:32 +01:00
da9030_battery.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
da9052-battery.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
ds2760_battery.c
ds2780_battery.c
ds2781_battery.c
ds2782_battery.c power: ds2782_battery: Simplify the PM hooks 2014-11-17 03:07:11 +01:00
generic-adc-battery.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
goldfish_battery.c
gpio-charger.c power: gpio-charger: balance enable/disable_irq_wake calls 2015-01-20 13:58:31 +01:00
intel_mid_battery.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
ipaq_micro_battery.c
isp1704_charger.c
jz4740-battery.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
Kconfig power: max14577: Remove SYSFS dependency from Kconfig 2015-01-21 19:36:57 +01:00
lp8727_charger.c
lp8788-charger.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
Makefile power: max77693: Add charger driver for Maxim 77693 2015-01-20 14:04:12 +01:00
max8903_charger.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
max8925_power.c
max8997_charger.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
max8998_charger.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
max14577_charger.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
max17040_battery.c
max17042_battery.c power: max17042: Constify struct regmap_config 2015-01-20 13:58:32 +01:00
max77693_charger.c power: max77693: fix platform_no_drv_owner.cocci warnings 2015-01-21 14:02:41 +01:00
olpc_battery.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
pcf50633-charger.c
pda_power.c
pm2301_charger.c power / PM: Eliminate CONFIG_PM_RUNTIME 2014-12-15 15:12:21 +01:00
pm2301_charger.h
pmu_battery.c
power_supply_core.c power_supply: Add no_thermal property to prevent recursive get_temp calls 2014-10-28 03:30:19 +01:00
power_supply_leds.c
power_supply_sysfs.c
power_supply.h
rt5033_battery.c power: rt5033_battery: Add RT5033 Fuel gauge device driver 2015-01-20 13:58:31 +01:00
rx51_battery.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
s3c_adc_battery.c
sbs-battery.c
smb347-charger.c
test_power.c
tosa_battery.c
tps65090-charger.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
twl4030_charger.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
twl4030_madc_battery.c
wm97xx_battery.c power: drop owner assignment from platform_drivers 2014-10-20 16:21:27 +02:00
wm831x_backup.c
wm831x_power.c
wm8350_power.c
z2_battery.c