diff mbox

drivers/spi: spi-qup: report errors on probe failures

Message ID 1444254469-12431-2-git-send-email-jorge.ramirez-ortiz@linaro.org
State New
Headers show

Commit Message

Jorge Ramirez-Ortiz Oct. 7, 2015, 9:47 p.m. UTC
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
---
 drivers/spi/spi-qup.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c
index 810a7fa..01a0f47 100644
--- a/drivers/spi/spi-qup.c
+++ b/drivers/spi/spi-qup.c
@@ -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;