diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2007-05-24 16:17:51 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2007-05-24 16:17:51 +0000 |
| commit | dbbeaafca4c16da6ba46e8aba6ca56f1d9ca10c5 (patch) | |
| tree | 4c48d321e0ab9f7436b27dd2379e75f870b110bd /sys/arm | |
| parent | 9fcef51546025b34807279753fe5645d35306a54 (diff) | |
Notes
Diffstat (limited to 'sys/arm')
| -rw-r--r-- | sys/arm/xscale/ixp425/uart_bus_ixp425.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/arm/xscale/ixp425/uart_bus_ixp425.c b/sys/arm/xscale/ixp425/uart_bus_ixp425.c index a27557afbd98..b694e9bd53bd 100644 --- a/sys/arm/xscale/ixp425/uart_bus_ixp425.c +++ b/sys/arm/xscale/ixp425/uart_bus_ixp425.c @@ -62,17 +62,15 @@ static driver_t uart_ixp425_driver = { uart_ixp425_methods, sizeof(struct uart_softc), }; +DRIVER_MODULE(uart, ixp, uart_ixp425_driver, uart_devclass, 0, 0); -extern SLIST_HEAD(uart_devinfo_list, uart_devinfo) uart_sysdevs; static int uart_ixp425_probe(device_t dev) { struct uart_softc *sc; sc = device_get_softc(dev); - sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs); sc->sc_class = &uart_ns8250_class; - bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas)); /* * XXX set UART Unit Enable (0x40) AND * receiver timeout int enable (0x10). @@ -84,8 +82,6 @@ uart_ixp425_probe(device_t dev) bus_space_write_4(&ixp425_a4x_bs_tag, device_get_unit(dev) == 0 ? IXP425_UART0_VBASE : IXP425_UART1_VBASE, IXP425_UART_IER, IXP425_UART_IER_UUE | IXP425_UART_IER_RTOIE); - return(uart_bus_probe(dev, 0, IXP425_UART_FREQ, 0, 0)); -} - -DRIVER_MODULE(uart, ixp, uart_ixp425_driver, uart_devclass, 0, 0); + return uart_bus_probe(dev, 0, IXP425_UART_FREQ, 0, 0); +} |
