Index: sys/arm/ti/ti_spi.c =================================================================== --- sys/arm/ti/ti_spi.c +++ sys/arm/ti/ti_spi.c @@ -561,6 +561,17 @@ DEVMETHOD(device_attach, ti_spi_attach), DEVMETHOD(device_detach, ti_spi_detach), + /* Bus interface */ + DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), + DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), + DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource), + DEVMETHOD(bus_release_resource, bus_generic_release_resource), + DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), + DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), + DEVMETHOD(bus_adjust_resource, bus_generic_adjust_resource), + DEVMETHOD(bus_set_resource, bus_generic_rl_set_resource), + DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource), + /* SPI interface */ DEVMETHOD(spibus_transfer, ti_spi_transfer), @@ -579,4 +590,7 @@ }; DRIVER_MODULE(ti_spi, simplebus, ti_spi_driver, ti_spi_devclass, 0, 0); +DRIVER_MODULE(spibus, ti_spi, spibus_driver, spibus_devclass, 0, 0); + MODULE_DEPEND(ti_spi, ti_sysc, 1, 1, 1); +MODULE_DEPEND(ti_spi, spibus, 1, 1, 1);