mmc: pxamci: Fix error return code in pxamci_probe
authorZhihao Cheng <chengzhihao1@huawei.com>
Sat, 21 Nov 2020 02:14:31 +0000 (10:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:20 +0000 (11:53 +0100)
commit2c9e1e32a2883747a65eba1211b95b0f33fc9810
tree4e19585df2cc3069cea9719c3fad638fe73cdd2a
parent3ab2d54ae31ee956450ef4aef5801e844739b5d9
mmc: pxamci: Fix error return code in pxamci_probe

[ 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