diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2009-11-24 13:54:49 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-12-03 14:36:17 -0500 |
commit | 89d3b3603bfb648e0113d8682d4f84dd18a776bd (patch) | |
tree | 6b18d5664317092bb5e757daa21a3ca6536ec3df /drivers/ata/pata_sil680.c | |
parent | 82beb5d89456a4c8329676985004b93a7ded5b5a (diff) |
ata: use pci_dev->revision
Some places were using PCI_CLASS_REVISION instead of PCI_REVISION_ID, so
they weren't converted by commit 44c10138fd4bbc4b6d6bff0873c24902f2a9da65
(PCI: Change all drivers to use pci_device->revision).
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_sil680.c')
-rw-r--r-- | drivers/ata/pata_sil680.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index 4cb649d8d38c..a2ace48a4610 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c | |||
@@ -212,13 +212,11 @@ static struct ata_port_operations sil680_port_ops = { | |||
212 | 212 | ||
213 | static u8 sil680_init_chip(struct pci_dev *pdev, int *try_mmio) | 213 | static u8 sil680_init_chip(struct pci_dev *pdev, int *try_mmio) |
214 | { | 214 | { |
215 | u32 class_rev = 0; | ||
216 | u8 tmpbyte = 0; | 215 | u8 tmpbyte = 0; |
217 | 216 | ||
218 | pci_read_config_dword(pdev, PCI_CLASS_REVISION, &class_rev); | ||
219 | class_rev &= 0xff; | ||
220 | /* FIXME: double check */ | 217 | /* FIXME: double check */ |
221 | pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, (class_rev) ? 1 : 255); | 218 | pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, |
219 | pdev->revision ? 1 : 255); | ||
222 | 220 | ||
223 | pci_write_config_byte(pdev, 0x80, 0x00); | 221 | pci_write_config_byte(pdev, 0x80, 0x00); |
224 | pci_write_config_byte(pdev, 0x84, 0x00); | 222 | pci_write_config_byte(pdev, 0x84, 0x00); |