Skip to contentSkip to conversation

max8925_bl: properly unregisters a backlight device object in error handling

PATCH New Axel Lin 1 participant 1 message May 10, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 max8925_bl: properly unregisters a backlight device object in error handling

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

---
 drivers/video/backlight/max8925_bl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/backlight/max8925_bl.c +1 -0
index b5accc9..b2b2c7b 100644
@@ -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;
 }
Signature · 1 line
1.5.4.3