The patch titled Subject: rtc: rtc-davinci: return correct error code if rtc_device_register() fails has been added to the -mm tree. Its filename is rtc-rtc-davinci-return-correct-error-code-if-rtc_device_register-fails.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: Devendra Naga <devendra.aaru@xxxxxxxxx> Subject: rtc: rtc-davinci: return correct error code if rtc_device_register() fails rtc_device_register() returns a pointer containing error code in case of error. Use that in the error return. Signed-off-by: Devendra Naga <devendra.aaru@xxxxxxxxx> Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> Cc: Miguel Aguilar <miguel.aguilar@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-davinci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN drivers/rtc/rtc-davinci.c~rtc-rtc-davinci-return-correct-error-code-if-rtc_device_register-fails drivers/rtc/rtc-davinci.c --- a/drivers/rtc/rtc-davinci.c~rtc-rtc-davinci-return-correct-error-code-if-rtc_device_register-fails +++ a/drivers/rtc/rtc-davinci.c @@ -529,8 +529,9 @@ static int __init davinci_rtc_probe(stru davinci_rtc->rtc = rtc_device_register(pdev->name, &pdev->dev, &davinci_rtc_ops, THIS_MODULE); if (IS_ERR(davinci_rtc->rtc)) { - dev_err(dev, "unable to register RTC device, err %ld\n", - PTR_ERR(davinci_rtc->rtc)); + ret = PTR_ERR(davinci_rtc->rtc); + dev_err(dev, "unable to register RTC device, err %d\n", + ret); goto fail3; } _ Patches currently in -mm which might be from devendra.aaru@xxxxxxxxx are linux-next.patch drivers-rtc-rtc-vt8500c-convert-to-use-devm_kzalloc.patch rtc-rtc-davinci-return-correct-error-code-if-rtc_device_register-fails.patch rtc-rtc-davinci-use-devm_kzalloc.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