diff options
author | marius <marius@FreeBSD.org> | 2005-12-03 18:11:26 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2005-12-03 18:11:26 +0000 |
commit | 1ae8104ca4cc5d5cf71ea4c34ee21fa30a7e1932 (patch) | |
tree | 40e0c87be96fddaf2b7db76031fd15927225832e /sys/sparc64/pci/ofw_pcibus.c | |
parent | 865e779b5d6ed4275a000576a9d4af4bf4b52706 (diff) | |
download | FreeBSD-src-1ae8104ca4cc5d5cf71ea4c34ee21fa30a7e1932.zip FreeBSD-src-1ae8104ca4cc5d5cf71ea4c34ee21fa30a7e1932.tar.gz |
- Adhere style(9) (don't use function calls in initializers, use uintXX_t
instead of u_intXX_t).
- Use FBSDID.
Diffstat (limited to 'sys/sparc64/pci/ofw_pcibus.c')
-rw-r--r-- | sys/sparc64/pci/ofw_pcibus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sparc64/pci/ofw_pcibus.c b/sys/sparc64/pci/ofw_pcibus.c index 6928de6..0ee2456 100644 --- a/sys/sparc64/pci/ofw_pcibus.c +++ b/sys/sparc64/pci/ofw_pcibus.c @@ -200,12 +200,14 @@ ofw_pcibus_setup_device(device_t bridge, u_int busno, u_int slot, u_int func) static int ofw_pcibus_attach(device_t dev) { - device_t pcib = device_get_parent(dev); + device_t pcib; struct ofw_pci_register pcir; struct ofw_pcibus_devinfo *dinfo; phandle_t node, child; u_int slot, busno, func; + pcib = device_get_parent(dev); + /* * Ask the bridge for the bus number - in some cases, we need to * renumber buses, so the firmware information cannot be trusted. |