Skip to content

Commit

Permalink
ds2780_battery&z2_battery: Add __devexit_p at necessary places
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Anton Vorontsov committed Aug 19, 2011
1 parent bd19c75 commit 0bea4b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/power/ds2780_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/power/z2_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static struct i2c_driver z2_batt_driver = {
.pm = Z2_BATTERY_PM_OPS
},
.probe = z2_batt_probe,
.remove = z2_batt_remove,
.remove = __devexit_p(z2_batt_remove),
.id_table = z2_batt_id,
};

Expand Down

0 comments on commit 0bea4b8

Please sign in to comment.