diff options
author | marius <marius@FreeBSD.org> | 2013-03-01 20:36:59 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2013-03-01 20:36:59 +0000 |
commit | 0c5e0b209e594a9f0dd463bef0be7c42d11b6ef6 (patch) | |
tree | c91e6a4d8707d55b2235a31dd77995266df0fa3c /sys/sparc64 | |
parent | 944a48f5cd4b3de81295d4b289362610ee533cd2 (diff) | |
download | FreeBSD-src-0c5e0b209e594a9f0dd463bef0be7c42d11b6ef6.zip FreeBSD-src-0c5e0b209e594a9f0dd463bef0be7c42d11b6ef6.tar.gz |
- In sbbc_pci_attach() just pass the already obtained bus tag and handle
instead of acquiring these anew.
- Use NULL instead of 0 for pointers.
MFC after: 1 week
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/pci/sbbc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/sparc64/pci/sbbc.c b/sys/sparc64/pci/sbbc.c index 491f653..218093f 100644 --- a/sys/sparc64/pci/sbbc.c +++ b/sys/sparc64/pci/sbbc.c @@ -299,7 +299,7 @@ static device_method_t sbbc_pci_methods[] = { static devclass_t sbbc_devclass; DEFINE_CLASS_0(sbbc, sbbc_driver, sbbc_pci_methods, sizeof(struct sbbc_softc)); -DRIVER_MODULE(sbbc, pci, sbbc_driver, sbbc_devclass, 0, 0); +DRIVER_MODULE(sbbc, pci, sbbc_driver, sbbc_devclass, NULL, NULL); static int sbbc_pci_probe(device_t dev) @@ -358,8 +358,7 @@ sbbc_pci_attach(device_t dev) if (error != 0) device_printf(dev, "failed to attach UART device\n"); } else { - error = sbbc_parse_toc(rman_get_bustag(sc->sc_res), - rman_get_bushandle(sc->sc_res)); + error = sbbc_parse_toc(bst, bsh); if (error != 0) { device_printf(dev, "failed to parse TOC\n"); if (sbbc_console != 0) { @@ -609,7 +608,7 @@ static device_method_t sbbc_uart_sbbc_methods[] = { DEFINE_CLASS_0(uart, sbbc_uart_driver, sbbc_uart_sbbc_methods, sizeof(struct uart_softc)); -DRIVER_MODULE(uart, sbbc, sbbc_uart_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart, sbbc, sbbc_uart_driver, uart_devclass, NULL, NULL); static int sbbc_uart_sbbc_probe(device_t dev) |