Commit 5a429bdd6f1bedf401556de61c29117dd41fe3b1
Committed by
Linus Torvalds
1 parent
eeb1ef3b64
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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 <jg1.han@samsung.com> Acked-by: Daniel Jeong <daniel.jeong@ti.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/video/backlight/lm3630_bl.c
... | ... | @@ -320,7 +320,7 @@ |
320 | 320 | backlight_device_register(name, pchip->dev, pchip, |
321 | 321 | &lm3630_bank_a_ops, &props); |
322 | 322 | if (IS_ERR(pchip->bled1)) |
323 | - return -EIO; | |
323 | + return PTR_ERR(pchip->bled1); | |
324 | 324 | break; |
325 | 325 | case BLED_2: |
326 | 326 | props.brightness = pdata->init_brt_led2; |
... | ... | @@ -329,7 +329,7 @@ |
329 | 329 | backlight_device_register(name, pchip->dev, pchip, |
330 | 330 | &lm3630_bank_b_ops, &props); |
331 | 331 | if (IS_ERR(pchip->bled2)) |
332 | - return -EIO; | |
332 | + return PTR_ERR(pchip->bled2); | |
333 | 333 | break; |
334 | 334 | } |
335 | 335 | return 0; |