soc: xilinx: Fix error code in zynqmp_pm_probe()
[sfrench/cifs-2.6.git] / drivers / soc / xilinx / zynqmp_power.c
index 31ff49fcd078b3084ebc41033330912568182615..c556623dae024874b6eaa1122dfcee50ad97bc97 100644 (file)
@@ -205,7 +205,7 @@ static int zynqmp_pm_probe(struct platform_device *pdev)
                rx_chan = mbox_request_channel_byname(client, "rx");
                if (IS_ERR(rx_chan)) {
                        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)) {
                irq = platform_get_irq(pdev, 0);