diff options
author | imp <imp@FreeBSD.org> | 2003-02-17 04:13:44 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-02-17 04:13:44 +0000 |
commit | 9ca123a9b5e06a7012786efe917e934c659b7ab2 (patch) | |
tree | e6ba3538e9a8af28ce354026f46f96cb65b657d2 /sys | |
parent | 54d6accf9d69c94d02bb319d998640d79ee83250 (diff) | |
download | FreeBSD-src-9ca123a9b5e06a7012786efe917e934c659b7ab2.zip FreeBSD-src-9ca123a9b5e06a7012786efe917e934c659b7ab2.tar.gz |
Move call to pci_print_verbose until after all the variables that it
depends on.
Pointy hat to: imp (anybody know if these things are accepted at Eco-Cycle?)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/cardbus/cardbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c index 8f8c5c9e..e4fd858 100644 --- a/sys/dev/cardbus/cardbus.c +++ b/sys/dev/cardbus/cardbus.c @@ -222,7 +222,6 @@ cardbus_attach_card(device_t cbdev) cardbus_device_setup_regs(brdev, bus, slot, func, &dinfo->pci.cfg); - pci_print_verbose(&dinfo->pci); dinfo->pci.cfg.dev = device_add_child(cbdev, NULL, -1); if (!dinfo->pci.cfg.dev) { DEVPRINTF((cbdev, "Cannot add child!\n")); @@ -232,6 +231,7 @@ cardbus_attach_card(device_t cbdev) resource_list_init(&dinfo->pci.resources); device_set_ivars(dinfo->pci.cfg.dev, dinfo); cardbus_do_cis(cbdev, dinfo->pci.cfg.dev); + pci_print_verbose(&dinfo->pci); if (device_probe_and_attach(dinfo->pci.cfg.dev) != 0) cardbus_release_all_resources(cbdev, dinfo); else |