From: Jingoo Han Date: Fri, 22 Feb 2013 00:44:02 +0000 (-0800) Subject: drivers/video/backlight/lm3630_bl.c: remove ret = -EIO of lm3630_backlight_register() X-Git-Tag: firefly_0821_release~3680^2~1067^2~59 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5a429bdd6f1bedf401556de61c29117dd41fe3b1;p=firefly-linux-kernel-4.4.55.git drivers/video/backlight/lm3630_bl.c: remove ret = -EIO of lm3630_backlight_register() There is no need to return -EIO, because backlight_device_register() already returns correct error values. Signed-off-by: Jingoo Han Acked-by: Daniel Jeong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/lm3630_bl.c b/drivers/video/backlight/lm3630_bl.c index a6d637b5c68f..76a62e978fc3 100644 --- a/drivers/video/backlight/lm3630_bl.c +++ b/drivers/video/backlight/lm3630_bl.c @@ -320,7 +320,7 @@ static int lm3630_backlight_register(struct lm3630_chip_data *pchip, backlight_device_register(name, pchip->dev, pchip, &lm3630_bank_a_ops, &props); if (IS_ERR(pchip->bled1)) - return -EIO; + return PTR_ERR(pchip->bled1); break; case BLED_2: props.brightness = pdata->init_brt_led2; @@ -329,7 +329,7 @@ static int lm3630_backlight_register(struct lm3630_chip_data *pchip, backlight_device_register(name, pchip->dev, pchip, &lm3630_bank_b_ops, &props); if (IS_ERR(pchip->bled2)) - return -EIO; + return PTR_ERR(pchip->bled2); break; } return 0;