All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] max8925_bl: properly unregisters a backlight device object in error handling
@ 2010-05-10  1:27 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2010-05-10  1:27 UTC (permalink / raw
  To: linux-kernel; +Cc: Haojian Zhuang, Samuel Ortiz, Richard Purdie

Properly unregisters a previously registered backlight device object in error handling of max8925_backlight_probe.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/video/backlight/max8925_bl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/video/backlight/max8925_bl.c b/drivers/video/backlight/max8925_bl.c
index b5accc9..b2b2c7b 100644
--- a/drivers/video/backlight/max8925_bl.c
+++ b/drivers/video/backlight/max8925_bl.c
@@ -162,6 +162,7 @@ static int __devinit max8925_backlight_probe(struct platform_device *pdev)
 	backlight_update_status(bl);
 	return 0;
 out:
+	backlight_device_unregister(bl);
 	kfree(data);
 	return ret;
 }
-- 
1.5.4.3




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-10  1:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10  1:27 [PATCH] max8925_bl: properly unregisters a backlight device object in error handling Axel Lin

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.