+        *
+        * If we don't hardware the bus down, pciconf gets confused.
         */
        if (sc->secbus != 0) {
-               child = device_add_child(dev, "pci", -1);
+               child = device_add_child(dev, "pci", sc->secbus);
                if (child != NULL)
                        return (bus_generic_attach(dev));
        } else

This one looks good, please commit. The comment above is outdated, so it might be better to just remove it completely.

At least fix the typo in the comment if you aren't going to remove it.


--
Justin

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to