Commit a6f2f0fd authored by Dan Carpenter's avatar Dan Carpenter Committed by Michal Simek

soc: xilinx: Fix error code in zynqmp_pm_probe()

This should be returning PTR_ERR() but it returns IS_ERR() instead.

Fixes: ffdbae28 ("drivers: soc: xilinx: Use mailbox IPI callback")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/20200605110020.GA978434@mwanda
parent b3a9e3b9
...@@ -205,7 +205,7 @@ static int zynqmp_pm_probe(struct platform_device *pdev) ...@@ -205,7 +205,7 @@ static int zynqmp_pm_probe(struct platform_device *pdev)
rx_chan = mbox_request_channel_byname(client, "rx"); rx_chan = mbox_request_channel_byname(client, "rx");
if (IS_ERR(rx_chan)) { if (IS_ERR(rx_chan)) {
dev_err(&pdev->dev, "Failed to request rx channel\n"); dev_err(&pdev->dev, "Failed to request rx channel\n");
return IS_ERR(rx_chan); return PTR_ERR(rx_chan);
} }
} else if (of_find_property(pdev->dev.of_node, "interrupts", NULL)) { } else if (of_find_property(pdev->dev.of_node, "interrupts", NULL)) {
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment