[PATCH] staging: most: hdm-dim2: fix error return code in dim2_probe()

2017-08-08 Thread Gustavo A. R. Silva
platform_get_irq() returns an error code, but the dim2_hdm driver ignores it and always returns -ENODEV. This is not correct and, prevents -EPROBE_DEFER from being propagated properly. Also, notice that platform_get_irq() no longer returns 0 on error:

[PATCH] staging: most: hdm-dim2: fix error return code in dim2_probe()

2017-08-08 Thread Gustavo A. R. Silva
platform_get_irq() returns an error code, but the dim2_hdm driver ignores it and always returns -ENODEV. This is not correct and, prevents -EPROBE_DEFER from being propagated properly. Also, notice that platform_get_irq() no longer returns 0 on error: