if (mmc->vmmc_supply) {
int ret = regulator_set_enable(mmc->vmmc_supply, true);
- if (ret) {
+ if (ret && ret != -EACCES) {
printf("Error enabling VMMC supply : %d\n", ret);
return ret;
}
if (mmc->vmmc_supply) {
int ret = regulator_set_enable(mmc->vmmc_supply, false);
- if (ret) {
+ if (ret && ret != -EACCES) {
pr_debug("Error disabling VMMC supply : %d\n", ret);
return ret;
}