summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci/ofw_pcibus.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2005-12-03 18:11:26 +0000
committermarius <marius@FreeBSD.org>2005-12-03 18:11:26 +0000
commit1ae8104ca4cc5d5cf71ea4c34ee21fa30a7e1932 (patch)
tree40e0c87be96fddaf2b7db76031fd15927225832e /sys/sparc64/pci/ofw_pcibus.c
parent865e779b5d6ed4275a000576a9d4af4bf4b52706 (diff)
downloadFreeBSD-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.c4
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.
OpenPOWER on IntegriCloud