The device class may be changed during the early fixup. So need to
re-read the device class from pci_dev after the fixup.
The patch "PCI: centralize device setup code" (c/s 825) wrongly
cleaned up the device class re-read. This patch reverts that change.
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
/* Early fixups, before probing the BARs */
pci_fixup_device(pci_fixup_early, dev);
+ class = dev->class >> 8;
switch (dev->hdr_type) { /* header type */
case PCI_HEADER_TYPE_NORMAL: /* standard header */