@@ -901,8 +901,10 @@ static int spi_qup_probe(struct platform_device *pdev)
ret = devm_request_irq(dev, irq, spi_qup_qup_irq,
IRQF_TRIGGER_HIGH, pdev->name, controller);
- if (ret)
+ if (ret) {
+ dev_err(dev, "failed to request IRQ\n");
goto error_dma;
+ }
pm_runtime_set_autosuspend_delay(dev, MSEC_PER_SEC);
pm_runtime_use_autosuspend(dev);
@@ -910,8 +912,10 @@ static int spi_qup_probe(struct platform_device *pdev)
pm_runtime_enable(dev);
ret = devm_spi_register_master(dev, master);
- if (ret)
+ if (ret) {
+ dev_err(dev, "failed to register controller\n");
goto disable_pm;
+ }
return 0;
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> --- drivers/spi/spi-qup.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)