max8925_bl: properly unregisters a backlight device object in error handling
Subsystems (2)
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.
Signed-off-by Axel Lin <[email protected]>
--- drivers/video/backlight/max8925_bl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/backlight/max8925_bl.c +1 -0
@@ -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