diff options
author | Matthew Wilcox <matthew@wil.cx> | 2007-10-05 15:55:06 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-23 15:11:10 -0400 |
commit | e58bc06ed071e43bef4e2f94340853761a4bf034 (patch) | |
tree | d0d677dad5d2d8a0452db9893b3749c44f485f8f /drivers/scsi/sym53c8xx_2/sym_hipd.c | |
parent | bd678450bfbd4bb6543a7138d9ee3418c2a11e7c (diff) |
[SCSI] sym53c8xx: Remove ->device_id
Following the same path as ->revision_id, remove ->device_id
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_hipd.c')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index 9f4198ce845e..5443394a60e5 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c | |||
@@ -804,7 +804,7 @@ static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, stru | |||
804 | * In dual channel mode, contention occurs if internal cycles | 804 | * In dual channel mode, contention occurs if internal cycles |
805 | * are used. Disable internal cycles. | 805 | * are used. Disable internal cycles. |
806 | */ | 806 | */ |
807 | if (np->device_id == PCI_DEVICE_ID_LSI_53C1010_33 && | 807 | if (np->s.device->device == PCI_DEVICE_ID_LSI_53C1010_33 && |
808 | np->s.device->revision < 0x1) | 808 | np->s.device->revision < 0x1) |
809 | np->rv_ccntl0 |= DILS; | 809 | np->rv_ccntl0 |= DILS; |
810 | 810 | ||
@@ -828,9 +828,9 @@ static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, stru | |||
828 | * this driver. The generic ncr driver that does not use | 828 | * this driver. The generic ncr driver that does not use |
829 | * LOAD/STORE instructions does not need this work-around. | 829 | * LOAD/STORE instructions does not need this work-around. |
830 | */ | 830 | */ |
831 | if ((np->device_id == PCI_DEVICE_ID_NCR_53C810 && | 831 | if ((np->s.device->device == PCI_DEVICE_ID_NCR_53C810 && |
832 | np->s.device->revision >= 0x10 && np->s.device->revision <= 0x11) || | 832 | np->s.device->revision >= 0x10 && np->s.device->revision <= 0x11) || |
833 | (np->device_id == PCI_DEVICE_ID_NCR_53C860 && | 833 | (np->s.device->device == PCI_DEVICE_ID_NCR_53C860 && |
834 | np->s.device->revision <= 0x1)) | 834 | np->s.device->revision <= 0x1)) |
835 | np->features &= ~(FE_WRIE|FE_ERL|FE_ERMP); | 835 | np->features &= ~(FE_WRIE|FE_ERL|FE_ERMP); |
836 | 836 | ||
@@ -897,7 +897,7 @@ static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, stru | |||
897 | if ((SYM_SETUP_SCSI_LED || | 897 | if ((SYM_SETUP_SCSI_LED || |
898 | (nvram->type == SYM_SYMBIOS_NVRAM || | 898 | (nvram->type == SYM_SYMBIOS_NVRAM || |
899 | (nvram->type == SYM_TEKRAM_NVRAM && | 899 | (nvram->type == SYM_TEKRAM_NVRAM && |
900 | np->device_id == PCI_DEVICE_ID_NCR_53C895))) && | 900 | np->s.device->device == PCI_DEVICE_ID_NCR_53C895))) && |
901 | !(np->features & FE_LEDC) && !(np->sv_gpcntl & 0x01)) | 901 | !(np->features & FE_LEDC) && !(np->sv_gpcntl & 0x01)) |
902 | np->features |= FE_LED0; | 902 | np->features |= FE_LED0; |
903 | 903 | ||
@@ -1798,7 +1798,7 @@ void sym_start_up (struct sym_hcb *np, int reason) | |||
1798 | /* | 1798 | /* |
1799 | * For now, disable AIP generation on C1010-66. | 1799 | * For now, disable AIP generation on C1010-66. |
1800 | */ | 1800 | */ |
1801 | if (np->device_id == PCI_DEVICE_ID_LSI_53C1010_66) | 1801 | if (np->s.device->device == PCI_DEVICE_ID_LSI_53C1010_66) |
1802 | OUTB(np, nc_aipcntl1, DISAIP); | 1802 | OUTB(np, nc_aipcntl1, DISAIP); |
1803 | 1803 | ||
1804 | /* | 1804 | /* |
@@ -1808,7 +1808,7 @@ void sym_start_up (struct sym_hcb *np, int reason) | |||
1808 | * that from SCRIPTS for each selection/reselection, but | 1808 | * that from SCRIPTS for each selection/reselection, but |
1809 | * I just don't want. :) | 1809 | * I just don't want. :) |
1810 | */ | 1810 | */ |
1811 | if (np->device_id == PCI_DEVICE_ID_LSI_53C1010_33 && | 1811 | if (np->s.device->device == PCI_DEVICE_ID_LSI_53C1010_33 && |
1812 | np->s.device->revision < 1) | 1812 | np->s.device->revision < 1) |
1813 | OUTB(np, nc_stest1, INB(np, nc_stest1) | 0x30); | 1813 | OUTB(np, nc_stest1, INB(np, nc_stest1) | 0x30); |
1814 | 1814 | ||
@@ -1817,9 +1817,9 @@ void sym_start_up (struct sym_hcb *np, int reason) | |||
1817 | * Disable overlapped arbitration for some dual function devices, | 1817 | * Disable overlapped arbitration for some dual function devices, |
1818 | * regardless revision id (kind of post-chip-design feature. ;-)) | 1818 | * regardless revision id (kind of post-chip-design feature. ;-)) |
1819 | */ | 1819 | */ |
1820 | if (np->device_id == PCI_DEVICE_ID_NCR_53C875) | 1820 | if (np->s.device->device == PCI_DEVICE_ID_NCR_53C875) |
1821 | OUTB(np, nc_ctest0, (1<<5)); | 1821 | OUTB(np, nc_ctest0, (1<<5)); |
1822 | else if (np->device_id == PCI_DEVICE_ID_NCR_53C896) | 1822 | else if (np->s.device->device == PCI_DEVICE_ID_NCR_53C896) |
1823 | np->rv_ccntl0 |= DPR; | 1823 | np->rv_ccntl0 |= DPR; |
1824 | 1824 | ||
1825 | /* | 1825 | /* |