1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-22 11:56:40 +00:00

Fix mmc->allow_voltage_switching assignment in sdmmc_init

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

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.

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.