struct pci_bus * pci_create_bus(struct device *parent,
int bus, struct pci_ops *ops, void *sysdata)
{
- int error;
+ int error, i;
struct pci_bus *b, *b2;
struct device *dev;
+ struct resource *res;
b = pci_alloc_bus();
if (!b)
b->resource[0] = &ioport_resource;
b->resource[1] = &iomem_resource;
+ if (parent)
+ dev_info(parent, "PCI host bridge to bus %s\n", dev_name(&b->dev));
+ else
+ printk(KERN_INFO "PCI host bridge to bus %s\n", dev_name(&b->dev));
+
+ pci_bus_for_each_resource(b, res, i) {
+ if (res)
+ dev_info(&b->dev, "root bus resource %pR\n", res);
+ }
+
return b;
class_dev_reg_err: