projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b523cfe
)
leds-mc13783: set platform data to NULL at mc13783_led_remove
author
Devendra Naga
<devendra.aaru@gmail.com>
Mon, 2 Jul 2012 08:40:20 +0000
(16:40 +0800)
committer
Bryan Wu
<bryan.wu@canonical.com>
Mon, 23 Jul 2012 23:52:35 +0000
(07:52 +0800)
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>
drivers/leds/leds-mc13783.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/leds/leds-mc13783.c
b/drivers/leds/leds-mc13783.c
index 4cc6a2e3df3487e1ce971b407bd56095d84b9b54..6515c11dbe6b6e3e6ac97f79140c89f0f583078d 100644
(file)
--- 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;
}