1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00

- 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
This commit is contained in:
Marius Strobl 2013-03-01 20:36:59 +00:00
parent 1a5a52f1f9
commit 22f19117ed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247574

View File

@ -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)