From: Gustavo A. R. Silva Date: Fri, 30 Jun 2017 06:54:16 +0000 (-0500) Subject: crypto: mxs-dcp - print error message on platform_get_irq failure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=353ef083970812168dc0990e356e93e203b2cb92;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git crypto: mxs-dcp - print error message on platform_get_irq failure Print error message on platform_get_irq failure before return. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/mxs-dcp.c b/drivers/crypto/mxs-dcp.c index 625ee50fd78b..764be3e6933c 100644 --- a/drivers/crypto/mxs-dcp.c +++ b/drivers/crypto/mxs-dcp.c @@ -908,12 +908,16 @@ static int mxs_dcp_probe(struct platform_device *pdev) iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); dcp_vmi_irq = platform_get_irq(pdev, 0); - if (dcp_vmi_irq < 0) + if (dcp_vmi_irq < 0) { + dev_err(dev, "Failed to get IRQ: (%d)!\n", dcp_vmi_irq); return dcp_vmi_irq; + } dcp_irq = platform_get_irq(pdev, 1); - if (dcp_irq < 0) + if (dcp_irq < 0) { + dev_err(dev, "Failed to get IRQ: (%d)!\n", dcp_irq); return dcp_irq; + } sdcp = devm_kzalloc(dev, sizeof(*sdcp), GFP_KERNEL); if (!sdcp)