All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: wm97xx-core - use platform_device_del instead of platform_device_unregister for error handling
@ 2010-09-02  8:27 Axel Lin
  2010-09-02 10:31 ` Liam Girdwood
  2010-09-02 12:23 ` Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2010-09-02  8:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mark Brown, Liam Girdwood, Dmitry Torokhov, linux-input

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/input/touchscreen/wm97xx-core.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/input/touchscreen/wm97xx-core.c b/drivers/input/touchscreen/wm97xx-core.c
index cbfef1e..770537c 100644
--- a/drivers/input/touchscreen/wm97xx-core.c
+++ b/drivers/input/touchscreen/wm97xx-core.c
@@ -684,8 +684,7 @@ static int wm97xx_probe(struct device *dev)
  touch_reg_err:
 	platform_device_put(wm->touch_dev);
  touch_err:
-	platform_device_unregister(wm->battery_dev);
-	wm->battery_dev = NULL;
+	platform_device_del(wm->battery_dev);
  batt_reg_err:
 	platform_device_put(wm->battery_dev);
  batt_err:
-- 
1.7.2




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

end of thread, other threads:[~2010-09-02 15:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02  8:27 [PATCH] Input: wm97xx-core - use platform_device_del instead of platform_device_unregister for error handling Axel Lin
2010-09-02 10:31 ` Liam Girdwood
2010-09-02 12:23 ` Mark Brown
2010-09-02 15:56   ` Dmitry Torokhov

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.