* [FIX] struct led_classdev conversion compile fallout
@ 2007-07-23 12:03 Andreas Gruenbacher
2007-07-23 12:15 ` Gabriel C
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Gruenbacher @ 2007-07-23 12:03 UTC (permalink / raw)
To: Richard Purdie; +Cc: LKML
Commit f8a7c6fe switched from a struct class_device to a struct device in
struct led_classdev. Need to adjust drivers/misc/asus-laptop.c as well.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c
index f753060..2fdee5b 100644
--- a/drivers/misc/asus-laptop.c
+++ b/drivers/misc/asus-laptop.c
@@ -1067,8 +1067,8 @@ static void asus_backlight_exit(void)
}
#define ASUS_LED_UNREGISTER(object) \
- if(object##_led.class_dev \
- && !IS_ERR(object##_led.class_dev)) \
+ if(object##_led.dev \
+ && !IS_ERR(object##_led.dev)) \
led_classdev_unregister(&object##_led)
static void asus_led_exit(void)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [FIX] struct led_classdev conversion compile fallout
2007-07-23 12:03 [FIX] struct led_classdev conversion compile fallout Andreas Gruenbacher
@ 2007-07-23 12:15 ` Gabriel C
0 siblings, 0 replies; 2+ messages in thread
From: Gabriel C @ 2007-07-23 12:15 UTC (permalink / raw)
To: Andreas Gruenbacher; +Cc: Richard Purdie, LKML
Andreas Gruenbacher wrote:
> Commit f8a7c6fe switched from a struct class_device to a struct device in
> struct led_classdev. Need to adjust drivers/misc/asus-laptop.c as well.
>
> Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
>
> diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c
> index f753060..2fdee5b 100644
> --- a/drivers/misc/asus-laptop.c
> +++ b/drivers/misc/asus-laptop.c
> @@ -1067,8 +1067,8 @@ static void asus_backlight_exit(void)
> }
>
> #define ASUS_LED_UNREGISTER(object) \
> - if(object##_led.class_dev \
> - && !IS_ERR(object##_led.class_dev)) \
> + if(object##_led.dev \
> + && !IS_ERR(object##_led.dev)) \
> led_classdev_unregister(&object##_led)
>
> static void asus_led_exit(void)
Same fix here -> http://lkml.org/lkml/2007/7/23/137 but see Al Viro comment about -> http://lkml.org/lkml/2007/7/23/139
Regards,
Gabriel C
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-23 12:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23 12:03 [FIX] struct led_classdev conversion compile fallout Andreas Gruenbacher
2007-07-23 12:15 ` Gabriel C
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox