Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8f115cd580121a169cc964e1b3288f3116c67f3e
Commit:     8f115cd580121a169cc964e1b3288f3116c67f3e
Parent:     72f8da329e07ad8a72c1f0e96b8955cfeb7c7329
Author:     Richard Purdie <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 31 23:11:11 2007 +0000
Committer:  Richard Purdie <[EMAIL PROTECTED]>
CommitDate: Mon Dec 31 23:11:11 2007 +0000

    leds: Fix locomo LED driver oops
    
    Fix locomo-leds to use the correct struct device to prevent an oops.
    
    Signed-off-by: Richard Purdie <[EMAIL PROTECTED]>
---
 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 bfac499..2207335 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->dev);
+       struct locomo_dev *locomo_dev = LOCOMO_DEV(led_cdev->dev->parent);
        unsigned long flags;
 
        local_irq_save(flags);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to