* [PATCH] power_supply: ds2780_battery/z2_battery: add __devexit_p at necessary places
@ 2011-07-07 13:15 Axel Lin
2011-08-19 16:18 ` Anton Vorontsov
2011-08-24 17:50 ` Barnes, Clifton A.
0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2011-07-07 13:15 UTC (permalink / raw)
To: linux-kernel
Cc: Clifton Barnes, Peter Edwards, Andrew Morton, Anton Vorontsov
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>
---
drivers/power/ds2780_battery.c | 2 +-
drivers/power/z2_battery.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/power/ds2780_battery.c b/drivers/power/ds2780_battery.c
index 1fefe82..ed25ef5 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)
diff --git a/drivers/power/z2_battery.c b/drivers/power/z2_battery.c
index d119c38..ae38c44 100644
--- a/drivers/power/z2_battery.c
+++ b/drivers/power/z2_battery.c
@@ -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,
};
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] power_supply: ds2780_battery/z2_battery: add __devexit_p at necessary places
2011-07-07 13:15 [PATCH] power_supply: ds2780_battery/z2_battery: add __devexit_p at necessary places Axel Lin
@ 2011-08-19 16:18 ` Anton Vorontsov
2011-08-24 17:50 ` Barnes, Clifton A.
1 sibling, 0 replies; 3+ messages in thread
From: Anton Vorontsov @ 2011-08-19 16:18 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Clifton Barnes, Peter Edwards, Andrew Morton
On Thu, Jul 07, 2011 at 09:15:13PM +0800, Axel Lin wrote:
> 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>
> ---
Applied, thanks.
--
Anton Vorontsov
Email: cbouatmailru@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] power_supply: ds2780_battery/z2_battery: add __devexit_p at necessary places
2011-07-07 13:15 [PATCH] power_supply: ds2780_battery/z2_battery: add __devexit_p at necessary places Axel Lin
2011-08-19 16:18 ` Anton Vorontsov
@ 2011-08-24 17:50 ` Barnes, Clifton A.
1 sibling, 0 replies; 3+ messages in thread
From: Barnes, Clifton A. @ 2011-08-24 17:50 UTC (permalink / raw)
To: Axel Lin
Cc: Peter Edwards, Andrew Morton, Anton Vorontsov,
linux-kernel@vger.kernel.org
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 570 bytes --]
On Thursday, July 07, 2011 9:15 AM, Axel Lin wrote:
> 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>
Checked out ok here for ds2780.
Acked-by: Clifton Barnes <cabarnes@indesign-llc.com>
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-24 17:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 13:15 [PATCH] power_supply: ds2780_battery/z2_battery: add __devexit_p at necessary places Axel Lin
2011-08-19 16:18 ` Anton Vorontsov
2011-08-24 17:50 ` Barnes, Clifton A.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox