summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-mc13783.c
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-07-02 08:40:20 (GMT)
committerBryan Wu <bryan.wu@canonical.com>2012-07-23 23:52:35 (GMT)
commit317dfb148d606a92e7d2748ab77f3d8f9749cc8a (patch)
treeb1869b5e66484de148821e7a5f0b397877ff7717 /drivers/leds/leds-mc13783.c
parentb523cfe61b097a45f4e919e8c3b6da239962b3e9 (diff)
downloadlinux-317dfb148d606a92e7d2748ab77f3d8f9749cc8a.tar.xz
leds-mc13783: set platform data to NULL at mc13783_led_remove
the platform_set_drvdata (pdev, NULL) to be set at the remove of the driver, as we have set the platform data to led at probe. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'drivers/leds/leds-mc13783.c')
-rw-r--r--drivers/leds/leds-mc13783.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/leds-mc13783.c b/drivers/leds/leds-mc13783.c
index 4cc6a2e..6515c11 100644
--- a/drivers/leds/leds-mc13783.c
+++ b/drivers/leds/leds-mc13783.c
@@ -372,6 +372,7 @@ static int __devexit mc13783_led_remove(struct platform_device *pdev)
mc13xxx_unlock(dev);
+ platform_set_drvdata(pdev, NULL);
kfree(led);
return 0;
}