Re: [PATCH] rtc: at91rm9200: fix error return code in at91_rtc_probe()

2017-08-12 Thread Alexandre Belloni
On 09/08/2017 at 10:52:44 -0500, Gustavo A. R. Silva wrote: > platform_get_irq() returns an error code, but the at91rm9200 driver > ignores it and always returns -ENXIO. This is not correct and, > prevents -EPROBE_DEFER from being propagated properly. > > Print and propagate the return value of pl

[PATCH] rtc: at91rm9200: fix error return code in at91_rtc_probe()

2017-08-09 Thread Gustavo A. R. Silva
platform_get_irq() returns an error code, but the at91rm9200 driver ignores it and always returns -ENXIO. This is not correct and, prevents -EPROBE_DEFER from being propagated properly. Print and propagate the return value of platform_get_irq on failure. This issue was detected with the help of C