]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: use fixed-up device class when configuring device
authorYu Zhao <yu.zhao@intel.com>
Wed, 27 May 2009 16:25:05 +0000 (00:25 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 4 Jun 2009 10:29:43 +0000 (11:29 +0100)
commit3c80a52c7341a7f4ff8ff6b2d38c80a641476269
tree6085fffb1442801293b8132b5d3f2aa735d0abdd
parent60895b1a773fd896726acab60494dc4adf4091b5
PCI: use fixed-up device class when configuring device

The device class may be changed after the fixup, so re-read the class
value from pci_dev when configuring the device.  Otherwise some devices
such as JMicron SATA controller won't work.

Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Tested-by: Marc Dionne <marc.c.dionne@gmail.com>
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c