Skip to content

Commit e5c0ef9

Browse files
RandomReaperPierre Ossman
authored andcommitted
at91_mci: minor cleanup
MMC_POWER_ON is a noop, no need to set the power pin again. Signed-off-by: Marc Pignat <[email protected]> Signed-off-by: Pierre Ossman <[email protected]>
1 parent 88ae600 commit e5c0ef9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/mmc/host/at91_mci.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,12 @@ static void at91_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
663663
gpio_set_value(host->board->vcc_pin, 0);
664664
break;
665665
case MMC_POWER_UP:
666-
case MMC_POWER_ON:
667666
gpio_set_value(host->board->vcc_pin, 1);
668667
break;
668+
case MMC_POWER_ON:
669+
break;
670+
default:
671+
WARN_ON(1);
669672
}
670673
}
671674
}

0 commit comments

Comments
 (0)