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.4 163/453] mmc: pxamci: Fix error return code in pxamci_probe
    Date
    From: Zhihao Cheng <chengzhihao1@huawei.com>

    [ Upstream commit d7b819b5d33869d41bdaa427aeb98ae24c57a38b ]

    Fix to return the error code from devm_gpiod_get_optional() instaed
    of 0 in pxamci_probe().

    Fixes: f54005b508b9a9d9c ("mmc: pxa: Use GPIO descriptor for power")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
    Link: https://lore.kernel.org/r/20201121021431.3168506-1-chengzhihao1@huawei.com
    Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/mmc/host/pxamci.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c
    index b2bbcb09a49e6..953e7457137a2 100644
    --- a/drivers/mmc/host/pxamci.c
    +++ b/drivers/mmc/host/pxamci.c
    @@ -729,6 +729,7 @@ static int pxamci_probe(struct platform_device *pdev)

    host->power = devm_gpiod_get_optional(dev, "power", GPIOD_OUT_LOW);
    if (IS_ERR(host->power)) {
    + ret = PTR_ERR(host->power);
    dev_err(dev, "Failed requesting gpio_power\n");
    goto out;
    }
    --
    2.27.0


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