|
@@ -745,6 +745,8 @@ int pci_setup_device(struct pci_dev *dev)
|
|
|
|
|
|
/* Early fixups, before probing the BARs */
|
|
/* Early fixups, before probing the BARs */
|
|
pci_fixup_device(pci_fixup_early, dev);
|
|
pci_fixup_device(pci_fixup_early, dev);
|
|
|
|
+ /* device class may be changed after fixup */
|
|
|
|
+ class = dev->class >> 8;
|
|
|
|
|
|
switch (dev->hdr_type) { /* header type */
|
|
switch (dev->hdr_type) { /* header type */
|
|
case PCI_HEADER_TYPE_NORMAL: /* standard header */
|
|
case PCI_HEADER_TYPE_NORMAL: /* standard header */
|