Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107455665
D33829.id103055.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
945 B
Referenced Files
None
Subscribers
None
D33829.id103055.diff
View Options
diff --git a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
--- a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
+++ b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
@@ -395,13 +395,10 @@
static int
bcm_sdhci_update_ios(device_t bus, device_t child)
{
-#ifdef EXT_RESOURCES
struct bcm_sdhci_softc *sc;
struct mmc_ios *ios;
-#endif
int rv;
-#ifdef EXT_RESOURCES
sc = device_get_softc(bus);
ios = &sc->sc_slot.host.ios;
@@ -411,20 +408,17 @@
if (sc->sc_mmc_helper.vqmmc_supply)
regulator_enable(sc->sc_mmc_helper.vqmmc_supply);
}
-#endif
rv = sdhci_generic_update_ios(bus, child);
if (rv != 0)
return (rv);
-#ifdef EXT_RESOURCES
if (ios->power_mode == power_off) {
if (sc->sc_mmc_helper.vmmc_supply)
regulator_disable(sc->sc_mmc_helper.vmmc_supply);
if (sc->sc_mmc_helper.vqmmc_supply)
regulator_disable(sc->sc_mmc_helper.vqmmc_supply);
}
-#endif
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 15, 10:08 AM (11 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15795118
Default Alt Text
D33829.id103055.diff (945 B)
Attached To
Mode
D33829: bcm2835_sdhci: Make ext_resources non-optional
Attached
Detach File
Event Timeline
Log In to Comment