The patch titled leds: leds-pwm: return proper error if pwm_request failed has been added to the -mm tree. Its filename is leds-leds-pwm-return-proper-error-if-pwm_request-failed.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 *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: leds: leds-pwm: return proper error if pwm_request failed From: Axel Lin <axel.lin@xxxxxxxxx> Return PTR_ERR(led_dat->pwm) instead of 0 if pwm_request failed Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx> Cc: Richard Purdie <rpurdie@xxxxxxxxx> Cc: Luotao Fu <l.fu@xxxxxxxxxxxxxx> Cc: Reviewed-by: Dmitry Torokhov <dtor@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/leds/leds-pwm.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/leds/leds-pwm.c~leds-leds-pwm-return-proper-error-if-pwm_request-failed drivers/leds/leds-pwm.c --- a/drivers/leds/leds-pwm.c~leds-leds-pwm-return-proper-error-if-pwm_request-failed +++ a/drivers/leds/leds-pwm.c @@ -69,6 +69,7 @@ static int led_pwm_probe(struct platform led_dat->pwm = pwm_request(cur_led->pwm_id, cur_led->name); if (IS_ERR(led_dat->pwm)) { + ret = PTR_ERR(led_dat->pwm); dev_err(&pdev->dev, "unable to request PWM %d\n", cur_led->pwm_id); goto err; _ Patches currently in -mm which might be from axel.lin@xxxxxxxxx are origin.patch linux-next.patch leds-leds-pwm-return-proper-error-if-pwm_request-failed.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