summaryrefslogtreecommitdiffstats
path: root/sys/arm/allwinner/a10_mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/allwinner/a10_mmc.c')
-rw-r--r--sys/arm/allwinner/a10_mmc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arm/allwinner/a10_mmc.c b/sys/arm/allwinner/a10_mmc.c
index 3c94bba..5db8684 100644
--- a/sys/arm/allwinner/a10_mmc.c
+++ b/sys/arm/allwinner/a10_mmc.c
@@ -45,7 +45,6 @@ __FBSDID("$FreeBSD$");
#include <dev/ofw/ofw_bus_subr.h>
#include <dev/mmc/bridge.h>
-#include <dev/mmc/mmcreg.h>
#include <dev/mmc/mmcbrvar.h>
#include <arm/allwinner/a10_mmc.h>
@@ -897,7 +896,6 @@ static device_method_t a10_mmc_methods[] = {
/* Bus interface */
DEVMETHOD(bus_read_ivar, a10_mmc_read_ivar),
DEVMETHOD(bus_write_ivar, a10_mmc_write_ivar),
- DEVMETHOD(bus_print_child, bus_generic_print_child),
/* MMC bridge interface */
DEVMETHOD(mmcbr_update_ios, a10_mmc_update_ios),
@@ -917,6 +915,6 @@ static driver_t a10_mmc_driver = {
sizeof(struct a10_mmc_softc),
};
-DRIVER_MODULE(a10_mmc, simplebus, a10_mmc_driver, a10_mmc_devclass, 0, 0);
-DRIVER_MODULE(mmc, a10_mmc, mmc_driver, mmc_devclass, NULL, NULL);
-MODULE_DEPEND(a10_mmc, mmc, 1, 1, 1);
+DRIVER_MODULE(a10_mmc, simplebus, a10_mmc_driver, a10_mmc_devclass, NULL,
+ NULL);
+MMC_DECLARE_BRIDGE(a10_mmc);
OpenPOWER on IntegriCloud