diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-07 15:15:13 +0200 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-08-19 19:03:21 +0200 |
commit | 0bea4b866448af09051e357b139f598aa70b8614 (patch) | |
tree | 7f2acc1deb101704d104979da9e18dc87d331a1b /drivers/power/ds2780_battery.c | |
parent | max8903_charger: Add "platform:" prefix for platform modalias (diff) | |
download | linux-0bea4b866448af09051e357b139f598aa70b8614.tar.xz linux-0bea4b866448af09051e357b139f598aa70b8614.zip |
ds2780_battery&z2_battery: Add __devexit_p at necessary places
According to the comments in include/linux/init.h:
"Pointers to __devexit functions must use __devexit_p(function_name), the
wrapper will insert either the function_name or NULL, depending on the config
options."
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Clifton Barnes <cabarnes@indesign-llc.com>
Cc: Peter Edwards <sweetlilmre@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/ds2780_battery.c')
-rw-r--r-- | drivers/power/ds2780_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/ds2780_battery.c b/drivers/power/ds2780_battery.c index 1fefe82e12e3..ed25ef5887d4 100644 --- a/drivers/power/ds2780_battery.c +++ b/drivers/power/ds2780_battery.c @@ -832,7 +832,7 @@ static struct platform_driver ds2780_battery_driver = { .name = "ds2780-battery", }, .probe = ds2780_battery_probe, - .remove = ds2780_battery_remove, + .remove = __devexit_p(ds2780_battery_remove), }; static int __init ds2780_battery_init(void) |