Fix mmc->allow_voltage_switching assignment in sdmmc_init

This commit is contained in:
TuxSH committed 2018-05-24 17:39:36 +02:00
1 parent 4d43a86b60
commit d57f4c54a9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -3391,7 +3391,7 @@ int sdmmc_init(struct mmc *mmc, enum sdmmc_controller controller, bool allow_vol
// Get a reference to the registers for the relevant SDMMC controller.
mmc->controller = controller;
mmc->regs = sdmmc_get_regs(controller);
mmc->allow_voltage_switching = false;
mmc->allow_voltage_switching = allow_voltage_switching;
// Set the defaults for the card, including the default function pointers
// for the assumed card type, and the per-controller options.