diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-07-08 23:19:31 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-07-16 01:15:51 +0100 |
commit | f8a7c6fe14f556ca8eeddce258cb21392d0c3a2f (patch) | |
tree | 517e178330a46186e6bbd09ba60e453ce32ca485 /drivers/leds/leds-locomo.c | |
parent | f9f451d9cac24b9bd49947d1c6971f3d689381fa (diff) | |
download | op-kernel-dev-f8a7c6fe14f556ca8eeddce258cb21392d0c3a2f.zip op-kernel-dev-f8a7c6fe14f556ca8eeddce258cb21392d0c3a2f.tar.gz |
leds: Convert from struct class_device to struct device
Convert the LEDs class from struct class_device to struct device
since class_device is scheduled for removal.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/leds/leds-locomo.c')
-rw-r--r-- | drivers/leds/leds-locomo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-locomo.c b/drivers/leds/leds-locomo.c index 6f2d449..bfac499 100644 --- a/drivers/leds/leds-locomo.c +++ b/drivers/leds/leds-locomo.c @@ -19,7 +19,7 @@ static void locomoled_brightness_set(struct led_classdev *led_cdev, enum led_brightness value, int offset) { - struct locomo_dev *locomo_dev = LOCOMO_DEV(led_cdev->class_dev->dev); + struct locomo_dev *locomo_dev = LOCOMO_DEV(led_cdev->dev); unsigned long flags; local_irq_save(flags); |