]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: sdhci-of-aspeed: Fix return value check in aspeed_sdc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 26 Aug 2019 12:00:13 +0000 (12:00 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 11 Sep 2019 13:58:39 +0000 (15:58 +0200)
commitf70d9a2440346d942f1f9dbda31da5a77510a05f
tree00e94d9a6d7a0e992d1e526e802ead8787f6ec9b
parentf47fdb855dc261353f506da4def890c42bb37ad4
mmc: sdhci-of-aspeed: Fix return value check in aspeed_sdc_probe()

In case of error, the function of_platform_device_create() returns
NULL pointer not ERR_PTR(). The IS_ERR() test in the return value
check should be replaced with NULL test.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-aspeed.c