msm_serial_hs: update IRQ related error messages

Log the error code when IRQ related APIs encounter errors.

Change-Id: I9992da38010a587a251f258d16400e65e9da0d94
Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>
This commit is contained in:
Naveen Kaje 2015-12-28 11:05:13 -07:00 committed by David Keitel
parent 512ab9815c
commit ef6ab14b27

View file

@ -2630,7 +2630,7 @@ static int msm_hs_startup(struct uart_port *uport)
ret = request_irq(uport->irq, msm_hs_isr, IRQF_TRIGGER_HIGH,
"msm_hs_uart", msm_uport);
if (unlikely(ret)) {
MSM_HS_ERR("%s():Error getting uart irq\n", __func__);
MSM_HS_ERR("%s():Error %d getting uart irq\n", __func__, ret);
goto sps_disconnect_rx;
}
@ -3278,12 +3278,14 @@ static int msm_hs_probe(struct platform_device *pdev)
}
core_irqres = platform_get_irq_byname(pdev, "core_irq");
if (core_irqres < 0) {
dev_err(&pdev->dev, "Invalid core irqres Resources.\n");
dev_err(&pdev->dev, "Error %d, invalid core irq resources.\n",
core_irqres);
return -ENXIO;
}
bam_irqres = platform_get_irq_byname(pdev, "bam_irq");
if (bam_irqres < 0) {
dev_err(&pdev->dev, "Invalid bam irqres Resources.\n");
dev_err(&pdev->dev, "Error %d, invalid bam irq resources.\n",
bam_irqres);
return -ENXIO;
}
wakeup_irqres = platform_get_irq_byname(pdev, "wakeup_irq");