Patch "soc: xilinx: Fix error code in zynqmp_pm_probe()" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    soc: xilinx: Fix error code in zynqmp_pm_probe()

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     soc-xilinx-fix-error-code-in-zynqmp_pm_probe.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit cce95255ed6fa3eed0ffa6881cb1dddc14f989e6
Author: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date:   Fri Jun 5 14:00:20 2020 +0300

    soc: xilinx: Fix error code in zynqmp_pm_probe()
    
    [ Upstream commit a6f2f0fdc73aacc6e10ae48ae78634dba26702d4 ]
    
    This should be returning PTR_ERR() but it returns IS_ERR() instead.
    
    Fixes: ffdbae28d9d1 ("drivers: soc: xilinx: Use mailbox IPI callback")
    Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
    Reviewed-by: Michal Simek <michal.simek@xxxxxxxxxx>
    Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20200605110020.GA978434@mwanda
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/soc/xilinx/zynqmp_power.c b/drivers/soc/xilinx/zynqmp_power.c
index 31ff49fcd078b..c556623dae024 100644
--- a/drivers/soc/xilinx/zynqmp_power.c
+++ b/drivers/soc/xilinx/zynqmp_power.c
@@ -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);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux