|
@@ -425,7 +425,7 @@ struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
|
|
|
dev->current_state = 4; /* unknown power state */
|
|
|
dev->error_state = pci_channel_io_normal;
|
|
|
|
|
|
- if (!strcmp(type, "pci") || !strcmp(type, "pciex")) {
|
|
|
+ if (!strcmp(node->name, "pci")) {
|
|
|
/* a PCI-PCI bridge */
|
|
|
dev->hdr_type = PCI_HEADER_TYPE_BRIDGE;
|
|
|
dev->rom_base_reg = PCI_ROM_ADDRESS1;
|