diff options
Diffstat (limited to 'drivers/scsi/qla1280.c')
-rw-r--r-- | drivers/scsi/qla1280.c | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 5a48e55f9418..680f6063954b 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c | |||
@@ -397,30 +397,6 @@ | |||
397 | #include "ql1280_fw.h" | 397 | #include "ql1280_fw.h" |
398 | #include "ql1040_fw.h" | 398 | #include "ql1040_fw.h" |
399 | 399 | ||
400 | |||
401 | /* | ||
402 | * Missing PCI ID's | ||
403 | */ | ||
404 | #ifndef PCI_DEVICE_ID_QLOGIC_ISP1080 | ||
405 | #define PCI_DEVICE_ID_QLOGIC_ISP1080 0x1080 | ||
406 | #endif | ||
407 | #ifndef PCI_DEVICE_ID_QLOGIC_ISP1240 | ||
408 | #define PCI_DEVICE_ID_QLOGIC_ISP1240 0x1240 | ||
409 | #endif | ||
410 | #ifndef PCI_DEVICE_ID_QLOGIC_ISP1280 | ||
411 | #define PCI_DEVICE_ID_QLOGIC_ISP1280 0x1280 | ||
412 | #endif | ||
413 | #ifndef PCI_DEVICE_ID_QLOGIC_ISP10160 | ||
414 | #define PCI_DEVICE_ID_QLOGIC_ISP10160 0x1016 | ||
415 | #endif | ||
416 | #ifndef PCI_DEVICE_ID_QLOGIC_ISP12160 | ||
417 | #define PCI_DEVICE_ID_QLOGIC_ISP12160 0x1216 | ||
418 | #endif | ||
419 | |||
420 | #ifndef PCI_VENDOR_ID_AMI | ||
421 | #define PCI_VENDOR_ID_AMI 0x101e | ||
422 | #endif | ||
423 | |||
424 | #ifndef BITS_PER_LONG | 400 | #ifndef BITS_PER_LONG |
425 | #error "BITS_PER_LONG not defined!" | 401 | #error "BITS_PER_LONG not defined!" |
426 | #endif | 402 | #endif |
@@ -4239,15 +4215,12 @@ qla1280_get_token(char *str) | |||
4239 | { | 4215 | { |
4240 | char *sep; | 4216 | char *sep; |
4241 | long ret = -1; | 4217 | long ret = -1; |
4242 | int i, len; | 4218 | int i; |
4243 | |||
4244 | len = sizeof(setup_token)/sizeof(struct setup_tokens); | ||
4245 | 4219 | ||
4246 | sep = strchr(str, ':'); | 4220 | sep = strchr(str, ':'); |
4247 | 4221 | ||
4248 | if (sep) { | 4222 | if (sep) { |
4249 | for (i = 0; i < len; i++){ | 4223 | for (i = 0; i < ARRAY_SIZE(setup_token); i++) { |
4250 | |||
4251 | if (!strncmp(setup_token[i].token, str, (sep - str))) { | 4224 | if (!strncmp(setup_token[i].token, str, (sep - str))) { |
4252 | ret = setup_token[i].val; | 4225 | ret = setup_token[i].val; |
4253 | break; | 4226 | break; |