PCI: Change all drivers to use pci_device->revision
authorAuke Kok <auke-jan.h.kok@intel.com>
Fri, 8 Jun 2007 22:46:36 +0000 (15:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:02:10 +0000 (16:02 -0700)
commit44c10138fd4bbc4b6d6bff0873c24902f2a9da65
tree6e16d3ec80c87490dc743f72da086356f2906ace
parentb8a3a5214d7cc115f1ca3a3967b7229d97c46f4a
PCI: Change all drivers to use pci_device->revision

Instead of all drivers reading pci config space to get the revision
ID, they can now use the pci_device->revision member.

This exposes some issues where drivers where reading a word or a dword
for the revision number, and adding useless error-handling around the
read. Some drivers even just read it for no purpose of all.

In devices where the revision ID is being copied over and used in what
appears to be the equivalent of hotpath, I have left the copy code
and the cached copy as not to influence the driver's performance.

Compile tested with make all{yes,mod}config on x86_64 and i386.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Acked-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
94 files changed:
arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c
arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
arch/i386/pci/fixup.c
arch/mips/pci/fixup-cobalt.c
drivers/acpi/processor_core.c
drivers/ata/ata_piix.c
drivers/ata/pata_ali.c
drivers/ata/pata_amd.c
drivers/ata/pata_it821x.c
drivers/ata/pata_serverworks.c
drivers/ata/pata_sis.c
drivers/ata/pata_sl82c105.c
drivers/ata/pata_via.c
drivers/ata/sata_mv.c
drivers/atm/eni.c
drivers/atm/idt77252.c
drivers/atm/iphase.c
drivers/atm/lanai.c
drivers/atm/zatm.c
drivers/char/agp/amd-k7-agp.c
drivers/char/agp/amd64-agp.c
drivers/clocksource/acpi_pm.c
drivers/i2c/busses/i2c-viapro.c
drivers/ide/pci/alim15x3.c
drivers/ide/pci/amd74xx.c
drivers/ide/pci/cmd64x.c
drivers/ide/pci/hpt366.c
drivers/ide/pci/piix.c
drivers/ide/pci/serverworks.c
drivers/ide/pci/sis5513.c
drivers/ide/pci/sl82c105.c
drivers/ide/pci/via82cxxx.c
drivers/infiniband/hw/ipath/ipath_driver.c
drivers/isdn/hisax/bkm_a8.c
drivers/media/radio/radio-gemtek-pci.c
drivers/media/video/meye.c
drivers/net/8139cp.c
drivers/net/8139too.c
drivers/net/atl1/atl1.h
drivers/net/atl1/atl1_main.c
drivers/net/bnx2.c
drivers/net/cassini.c
drivers/net/dl2k.c
drivers/net/dl2k.h
drivers/net/e100.c
drivers/net/e1000/e1000_main.c
drivers/net/forcedeth.c
drivers/net/netxen/netxen_nic_main.c
drivers/net/s2io.c
drivers/net/s2io.h
drivers/net/sundance.c
drivers/net/sunhme.c
drivers/net/tg3.c
drivers/net/tlan.c
drivers/net/tulip/de4x5.c
drivers/net/tulip/dmfe.c
drivers/net/tulip/tulip_core.c
drivers/net/tulip/xircom_cb.c
drivers/net/tulip/xircom_tulip_cb.c
drivers/net/via-rhine.c
drivers/net/via-velocity.c
drivers/net/wan/pc300_drv.c
drivers/net/wan/pc300too.c
drivers/net/wan/pci200syn.c
drivers/net/wireless/bcm43xx/bcm43xx_main.c
drivers/pci/hotplug/cpqphp_core.c
drivers/pci/quirks.c
drivers/scsi/aic94xx/aic94xx_init.c
drivers/scsi/ipr.c
drivers/scsi/ips.c
drivers/scsi/qla2xxx/qla_init.c
drivers/serial/jsm/jsm_driver.c
drivers/usb/host/ehci-pci.c
drivers/video/kyro/STG4000InitDevice.c
drivers/video/matrox/matroxfb_base.c
drivers/video/sis/sis_main.c
drivers/video/sstfb.c
drivers/video/tgafb.c
sound/oss/emu10k1/main.c
sound/oss/es1371.c
sound/pci/ali5451/ali5451.c
sound/pci/atiixp.c
sound/pci/atiixp_modem.c
sound/pci/au88x0/au88x0.c
sound/pci/ca0106/ca0106.h
sound/pci/ca0106/ca0106_main.c
sound/pci/emu10k1/emu10k1_main.c
sound/pci/emu10k1/emu10k1x.c
sound/pci/ens1370.c
sound/pci/fm801.c
sound/pci/via82xx.c
sound/pci/via82xx_modem.c
sound/pci/ymfpci/ymfpci_main.c