lkml.org 
[lkml]   [2020]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 298/717] soc: rockchip: io-domain: Fix error return code in rockchip_iodomain_probe()
    Date
    From: Zhang Changzhong <zhangchangzhong@huawei.com>

    [ Upstream commit c2867b2e710fc85bb39c6f6e5948450c48e8a33e ]

    Fix to return a negative error code from the error handling
    case instead of 0, as done elsewhere in this function.

    Fixes: e943c43b32ce ("PM: AVS: rockchip-io: Move the driver to the rockchip specific drivers")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
    Link: https://lore.kernel.org/r/1607070805-33038-1-git-send-email-zhangchangzhong@huawei.com
    Signed-off-by: Heiko Stuebner <heiko@sntech.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/soc/rockchip/io-domain.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/soc/rockchip/io-domain.c b/drivers/soc/rockchip/io-domain.c
    index eece97f97ef8f..b29e829e815e5 100644
    --- a/drivers/soc/rockchip/io-domain.c
    +++ b/drivers/soc/rockchip/io-domain.c
    @@ -547,6 +547,7 @@ static int rockchip_iodomain_probe(struct platform_device *pdev)
    if (uV < 0) {
    dev_err(iod->dev, "Can't determine voltage: %s\n",
    supply_name);
    + ret = uV;
    goto unreg_notify;
    }

    --
    2.27.0


    \
     
     \ /
      Last update: 2020-12-28 16:03    [W:7.247 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site