mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mmc: sdhci: Fix vqmmc error setting
supply.vqmmc is used with the IS_ERR macro which means the value must be valid or an error code. NULL is neither, so replace with ERR_PTR(-EINVAL). Signed-off-by: Adrian Hunter <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
04834a78bd
commit
4bb74313b3
1 changed files with 1 additions and 1 deletions
|
|
@ -3096,7 +3096,7 @@ int sdhci_add_host(struct sdhci_host *host)
|
|||
if (ret) {
|
||||
pr_warn("%s: Failed to enable vqmmc regulator: %d\n",
|
||||
mmc_hostname(mmc), ret);
|
||||
mmc->supply.vqmmc = NULL;
|
||||
mmc->supply.vqmmc = ERR_PTR(-EINVAL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue