lkml.org 
[lkml]   [2009]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] hwmon: (lm78) add missing __devexit_p()
Hi Mike,

On Fri, 15 May 2009 14:50:23 -0400, Mike Frysinger wrote:
> The remove function uses __devexit, so the .remove assignment needs
> __devexit_p() to fix a build error with hotplug disabled.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> CC: Jean Delvare <khali@linux-fr.org>
> ---
> drivers/hwmon/lm78.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c
> index b5e3b28..a1787fd 100644
> --- a/drivers/hwmon/lm78.c
> +++ b/drivers/hwmon/lm78.c
> @@ -182,7 +182,7 @@ static struct platform_driver lm78_isa_driver = {
> .name = "lm78",
> },
> .probe = lm78_isa_probe,
> - .remove = lm78_isa_remove,
> + .remove = __devexit_p(lm78_isa_remove),
> };
>
>

Good catch. Applied, thanks!

--
Jean Delvare


\
 
 \ /
  Last update: 2009-05-16 12:05    [W:0.049 / U:0.240 seconds]
©2003-2014 Jasper Spaans. Advertise on this site