The patch titled Subject: drivers/video/backlight/adp8870_bl.c: fix error return code in adp8870_led_probe() has been added to the -mm tree. Its filename is drivers-video-backlight-adp8870_blc-fix-error-return-code-in-adp8870_led_probe.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx> Subject: drivers/video/backlight/adp8870_bl.c: fix error return code in adp8870_led_probe() Fix to return a negative error code from the error handling case instead of 0, as returned elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx> Acked-by: Jingoo Han <jg1.han@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/video/backlight/adp8870_bl.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN drivers/video/backlight/adp8870_bl.c~drivers-video-backlight-adp8870_blc-fix-error-return-code-in-adp8870_led_probe drivers/video/backlight/adp8870_bl.c --- a/drivers/video/backlight/adp8870_bl.c~drivers-video-backlight-adp8870_blc-fix-error-return-code-in-adp8870_led_probe +++ a/drivers/video/backlight/adp8870_bl.c @@ -274,12 +274,14 @@ static int adp8870_led_probe(struct i2c_ if (led_dat->id > 7 || led_dat->id < 1) { dev_err(&client->dev, "Invalid LED ID %d\n", led_dat->id); + ret = -EINVAL; goto err; } if (pdata->bl_led_assign & (1 << (led_dat->id - 1))) { dev_err(&client->dev, "LED %d used by Backlight\n", led_dat->id); + ret = -EBUSY; goto err; } _ Patches currently in -mm which might be from yongjun_wei@xxxxxxxxxxxxxxxxx are origin.patch linux-next.patch rpmsg-fix-error-return-code-in-rpmsg_probe.patch drivers-video-backlight-adp8860_blc-fix-error-return-code-in-adp8860_led_probe.patch drivers-video-backlight-adp8870_blc-fix-error-return-code-in-adp8870_led_probe.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html