diff options
Diffstat (limited to 'drivers/scsi/atp870u.c')
-rw-r--r-- | drivers/scsi/atp870u.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c index 7e6eca4a125e..68ce08552f69 100644 --- a/drivers/scsi/atp870u.c +++ b/drivers/scsi/atp870u.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/blkdev.h> | 30 | #include <linux/blkdev.h> |
31 | #include <linux/dma-mapping.h> | 31 | #include <linux/dma-mapping.h> |
32 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
33 | #include <asm/system.h> | ||
34 | #include <asm/io.h> | 33 | #include <asm/io.h> |
35 | 34 | ||
36 | #include <scsi/scsi.h> | 35 | #include <scsi/scsi.h> |
@@ -2583,7 +2582,7 @@ static int atp870u_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2583 | * this than via the PCI device table | 2582 | * this than via the PCI device table |
2584 | */ | 2583 | */ |
2585 | if (ent->device == PCI_DEVICE_ID_ARTOP_AEC7610) { | 2584 | if (ent->device == PCI_DEVICE_ID_ARTOP_AEC7610) { |
2586 | error = pci_read_config_byte(pdev, PCI_CLASS_REVISION, &atpdev->chip_ver); | 2585 | atpdev->chip_ver = pdev->revision; |
2587 | if (atpdev->chip_ver < 2) | 2586 | if (atpdev->chip_ver < 2) |
2588 | goto err_eio; | 2587 | goto err_eio; |
2589 | } | 2588 | } |
@@ -2602,7 +2601,7 @@ static int atp870u_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2602 | base_io &= 0xfffffff8; | 2601 | base_io &= 0xfffffff8; |
2603 | 2602 | ||
2604 | if ((ent->device == ATP880_DEVID1)||(ent->device == ATP880_DEVID2)) { | 2603 | if ((ent->device == ATP880_DEVID1)||(ent->device == ATP880_DEVID2)) { |
2605 | error = pci_read_config_byte(pdev, PCI_CLASS_REVISION, &atpdev->chip_ver); | 2604 | atpdev->chip_ver = pdev->revision; |
2606 | pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0x80);//JCC082803 | 2605 | pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0x80);//JCC082803 |
2607 | 2606 | ||
2608 | host_id = inb(base_io + 0x39); | 2607 | host_id = inb(base_io + 0x39); |