mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
mmc: jz4740: Use PTR_ERR_OR_ZERO in jz4740_mmc_request_gpios()
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: YueHaibing <[email protected]> Acked-by: Joey Pabalinas <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
67b4ff9fb7
commit
feb357458b
1 changed files with 1 additions and 4 deletions
|
|
@ -965,10 +965,7 @@ static int jz4740_mmc_request_gpios(struct jz4740_mmc_host *host,
|
|||
|
||||
host->power = devm_gpiod_get_optional(&pdev->dev, "power",
|
||||
GPIOD_OUT_HIGH);
|
||||
if (IS_ERR(host->power))
|
||||
return PTR_ERR(host->power);
|
||||
|
||||
return 0;
|
||||
return PTR_ERR_OR_ZERO(host->power);
|
||||
}
|
||||
|
||||
static const struct of_device_id jz4740_mmc_of_match[] = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue