PCI: fix conflict between SR-IOV and config space sizing
authorYu Zhao <yu.zhao@intel.com>
Sat, 21 Mar 2009 14:05:11 +0000 (22:05 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 26 Mar 2009 22:50:18 +0000 (15:50 -0700)
commit853346e4354c948b50a6fb0002f8af2cf5fbf2ae
treeb577bc1e79a44c471635559f0bcbfce424309f73
parentceb93a9ff16612314d757874b6415ffbb2091576
PCI: fix conflict between SR-IOV and config space sizing

New pci_cfg_space_size() needs invalid pdev->class, put it in the
right place in the pci_setup_device().

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c