summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-05-10 03:27:34 +0200
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-26 18:34:36 +0200
commit146e10a8c457236e017355ed9ba0ef78fbb3d12b (patch)
tree264eac22573b7e4e6aded84a919cfbed425a4a33 /drivers/video/backlight
parentbacklight: l4f00242t03: fix error handling in l4f00242t03_probe (diff)
downloadlinux-146e10a8c457236e017355ed9ba0ef78fbb3d12b.tar.xz
linux-146e10a8c457236e017355ed9ba0ef78fbb3d12b.zip
backlight: max8925_bl: Fix error handling path
Properly unregister a previously registered backlight device object in error handling of max8925_backlight_probe. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r--drivers/video/backlight/max8925_bl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/backlight/max8925_bl.c b/drivers/video/backlight/max8925_bl.c
index b5accc957ad3..b2b2c7ba1f63 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;
}