All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] leds-mc13783: set platform data to NULL at mc13783_led_remove
@ 2012-07-02  8:40 Devendra Naga
  2012-07-02 13:53 ` Bryan Wu
  0 siblings, 1 reply; 5+ messages in thread
From: Devendra Naga @ 2012-07-02  8:40 UTC (permalink / raw)
  To: Bryan Wu, Richard Purdie, linux-leds, linux-kernel; +Cc: Devendra Naga

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>
---
 drivers/leds/leds-mc13783.c |    1 +
 1 file changed, 1 insertion(+)

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;
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-03  2:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-02  8:40 [PATCH] leds-mc13783: set platform data to NULL at mc13783_led_remove Devendra Naga
2012-07-02 13:53 ` Bryan Wu
2012-07-02 15:56   ` devendra.aaru
2012-07-02 18:10     ` devendra.aaru
2012-07-03  2:28       ` Bryan Wu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.