Skip to content

Commit a6f2f0f

Browse files
Dan CarpenterMichal Simek
authored andcommitted
soc: xilinx: Fix error code in zynqmp_pm_probe()
This should be returning PTR_ERR() but it returns IS_ERR() instead. Fixes: ffdbae2 ("drivers: soc: xilinx: Use mailbox IPI callback") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Link: https://lore.kernel.org/r/20200605110020.GA978434@mwanda
1 parent b3a9e3b commit a6f2f0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/xilinx/zynqmp_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static int zynqmp_pm_probe(struct platform_device *pdev)
205205
rx_chan = mbox_request_channel_byname(client, "rx");
206206
if (IS_ERR(rx_chan)) {
207207
dev_err(&pdev->dev, "Failed to request rx channel\n");
208-
return IS_ERR(rx_chan);
208+
return PTR_ERR(rx_chan);
209209
}
210210
} else if (of_find_property(pdev->dev.of_node, "interrupts", NULL)) {
211211
irq = platform_get_irq(pdev, 0);

0 commit comments

Comments
 (0)