diff options
Diffstat (limited to 'drivers/ide/hpt366.c')
-rw-r--r-- | drivers/ide/hpt366.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/ide/hpt366.c b/drivers/ide/hpt366.c index 4aec3b87ff91..696b6c1ec940 100644 --- a/drivers/ide/hpt366.c +++ b/drivers/ide/hpt366.c | |||
@@ -443,7 +443,7 @@ static struct hpt_timings hpt37x_timings = { | |||
443 | } | 443 | } |
444 | }; | 444 | }; |
445 | 445 | ||
446 | static const struct hpt_info hpt36x __devinitconst = { | 446 | static const struct hpt_info hpt36x = { |
447 | .chip_name = "HPT36x", | 447 | .chip_name = "HPT36x", |
448 | .chip_type = HPT36x, | 448 | .chip_type = HPT36x, |
449 | .udma_mask = HPT366_ALLOW_ATA66_3 ? (HPT366_ALLOW_ATA66_4 ? ATA_UDMA4 : ATA_UDMA3) : ATA_UDMA2, | 449 | .udma_mask = HPT366_ALLOW_ATA66_3 ? (HPT366_ALLOW_ATA66_4 ? ATA_UDMA4 : ATA_UDMA3) : ATA_UDMA2, |
@@ -451,7 +451,7 @@ static const struct hpt_info hpt36x __devinitconst = { | |||
451 | .timings = &hpt36x_timings | 451 | .timings = &hpt36x_timings |
452 | }; | 452 | }; |
453 | 453 | ||
454 | static const struct hpt_info hpt370 __devinitconst = { | 454 | static const struct hpt_info hpt370 = { |
455 | .chip_name = "HPT370", | 455 | .chip_name = "HPT370", |
456 | .chip_type = HPT370, | 456 | .chip_type = HPT370, |
457 | .udma_mask = HPT370_ALLOW_ATA100_5 ? ATA_UDMA5 : ATA_UDMA4, | 457 | .udma_mask = HPT370_ALLOW_ATA100_5 ? ATA_UDMA5 : ATA_UDMA4, |
@@ -459,7 +459,7 @@ static const struct hpt_info hpt370 __devinitconst = { | |||
459 | .timings = &hpt37x_timings | 459 | .timings = &hpt37x_timings |
460 | }; | 460 | }; |
461 | 461 | ||
462 | static const struct hpt_info hpt370a __devinitconst = { | 462 | static const struct hpt_info hpt370a = { |
463 | .chip_name = "HPT370A", | 463 | .chip_name = "HPT370A", |
464 | .chip_type = HPT370A, | 464 | .chip_type = HPT370A, |
465 | .udma_mask = HPT370_ALLOW_ATA100_5 ? ATA_UDMA5 : ATA_UDMA4, | 465 | .udma_mask = HPT370_ALLOW_ATA100_5 ? ATA_UDMA5 : ATA_UDMA4, |
@@ -467,7 +467,7 @@ static const struct hpt_info hpt370a __devinitconst = { | |||
467 | .timings = &hpt37x_timings | 467 | .timings = &hpt37x_timings |
468 | }; | 468 | }; |
469 | 469 | ||
470 | static const struct hpt_info hpt374 __devinitconst = { | 470 | static const struct hpt_info hpt374 = { |
471 | .chip_name = "HPT374", | 471 | .chip_name = "HPT374", |
472 | .chip_type = HPT374, | 472 | .chip_type = HPT374, |
473 | .udma_mask = ATA_UDMA5, | 473 | .udma_mask = ATA_UDMA5, |
@@ -475,7 +475,7 @@ static const struct hpt_info hpt374 __devinitconst = { | |||
475 | .timings = &hpt37x_timings | 475 | .timings = &hpt37x_timings |
476 | }; | 476 | }; |
477 | 477 | ||
478 | static const struct hpt_info hpt372 __devinitconst = { | 478 | static const struct hpt_info hpt372 = { |
479 | .chip_name = "HPT372", | 479 | .chip_name = "HPT372", |
480 | .chip_type = HPT372, | 480 | .chip_type = HPT372, |
481 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 481 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
@@ -483,7 +483,7 @@ static const struct hpt_info hpt372 __devinitconst = { | |||
483 | .timings = &hpt37x_timings | 483 | .timings = &hpt37x_timings |
484 | }; | 484 | }; |
485 | 485 | ||
486 | static const struct hpt_info hpt372a __devinitconst = { | 486 | static const struct hpt_info hpt372a = { |
487 | .chip_name = "HPT372A", | 487 | .chip_name = "HPT372A", |
488 | .chip_type = HPT372A, | 488 | .chip_type = HPT372A, |
489 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 489 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
@@ -491,7 +491,7 @@ static const struct hpt_info hpt372a __devinitconst = { | |||
491 | .timings = &hpt37x_timings | 491 | .timings = &hpt37x_timings |
492 | }; | 492 | }; |
493 | 493 | ||
494 | static const struct hpt_info hpt302 __devinitconst = { | 494 | static const struct hpt_info hpt302 = { |
495 | .chip_name = "HPT302", | 495 | .chip_name = "HPT302", |
496 | .chip_type = HPT302, | 496 | .chip_type = HPT302, |
497 | .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 497 | .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
@@ -499,7 +499,7 @@ static const struct hpt_info hpt302 __devinitconst = { | |||
499 | .timings = &hpt37x_timings | 499 | .timings = &hpt37x_timings |
500 | }; | 500 | }; |
501 | 501 | ||
502 | static const struct hpt_info hpt371 __devinitconst = { | 502 | static const struct hpt_info hpt371 = { |
503 | .chip_name = "HPT371", | 503 | .chip_name = "HPT371", |
504 | .chip_type = HPT371, | 504 | .chip_type = HPT371, |
505 | .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 505 | .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
@@ -507,7 +507,7 @@ static const struct hpt_info hpt371 __devinitconst = { | |||
507 | .timings = &hpt37x_timings | 507 | .timings = &hpt37x_timings |
508 | }; | 508 | }; |
509 | 509 | ||
510 | static const struct hpt_info hpt372n __devinitconst = { | 510 | static const struct hpt_info hpt372n = { |
511 | .chip_name = "HPT372N", | 511 | .chip_name = "HPT372N", |
512 | .chip_type = HPT372N, | 512 | .chip_type = HPT372N, |
513 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 513 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
@@ -515,7 +515,7 @@ static const struct hpt_info hpt372n __devinitconst = { | |||
515 | .timings = &hpt37x_timings | 515 | .timings = &hpt37x_timings |
516 | }; | 516 | }; |
517 | 517 | ||
518 | static const struct hpt_info hpt302n __devinitconst = { | 518 | static const struct hpt_info hpt302n = { |
519 | .chip_name = "HPT302N", | 519 | .chip_name = "HPT302N", |
520 | .chip_type = HPT302N, | 520 | .chip_type = HPT302N, |
521 | .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 521 | .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
@@ -523,7 +523,7 @@ static const struct hpt_info hpt302n __devinitconst = { | |||
523 | .timings = &hpt37x_timings | 523 | .timings = &hpt37x_timings |
524 | }; | 524 | }; |
525 | 525 | ||
526 | static const struct hpt_info hpt371n __devinitconst = { | 526 | static const struct hpt_info hpt371n = { |
527 | .chip_name = "HPT371N", | 527 | .chip_name = "HPT371N", |
528 | .chip_type = HPT371N, | 528 | .chip_type = HPT371N, |
529 | .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 529 | .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
@@ -1197,7 +1197,7 @@ static u8 hpt3xx_cable_detect(ide_hwif_t *hwif) | |||
1197 | return (scr1 & ata66) ? ATA_CBL_PATA40 : ATA_CBL_PATA80; | 1197 | return (scr1 & ata66) ? ATA_CBL_PATA40 : ATA_CBL_PATA80; |
1198 | } | 1198 | } |
1199 | 1199 | ||
1200 | static void __devinit init_hwif_hpt366(ide_hwif_t *hwif) | 1200 | static void init_hwif_hpt366(ide_hwif_t *hwif) |
1201 | { | 1201 | { |
1202 | struct hpt_info *info = hpt3xx_get_info(hwif->dev); | 1202 | struct hpt_info *info = hpt3xx_get_info(hwif->dev); |
1203 | u8 chip_type = info->chip_type; | 1203 | u8 chip_type = info->chip_type; |
@@ -1221,7 +1221,7 @@ static void __devinit init_hwif_hpt366(ide_hwif_t *hwif) | |||
1221 | } | 1221 | } |
1222 | } | 1222 | } |
1223 | 1223 | ||
1224 | static int __devinit init_dma_hpt366(ide_hwif_t *hwif, | 1224 | static int init_dma_hpt366(ide_hwif_t *hwif, |
1225 | const struct ide_port_info *d) | 1225 | const struct ide_port_info *d) |
1226 | { | 1226 | { |
1227 | struct pci_dev *dev = to_pci_dev(hwif->dev); | 1227 | struct pci_dev *dev = to_pci_dev(hwif->dev); |
@@ -1265,7 +1265,7 @@ static int __devinit init_dma_hpt366(ide_hwif_t *hwif, | |||
1265 | return 0; | 1265 | return 0; |
1266 | } | 1266 | } |
1267 | 1267 | ||
1268 | static void __devinit hpt374_init(struct pci_dev *dev, struct pci_dev *dev2) | 1268 | static void hpt374_init(struct pci_dev *dev, struct pci_dev *dev2) |
1269 | { | 1269 | { |
1270 | if (dev2->irq != dev->irq) { | 1270 | if (dev2->irq != dev->irq) { |
1271 | /* FIXME: we need a core pci_set_interrupt() */ | 1271 | /* FIXME: we need a core pci_set_interrupt() */ |
@@ -1275,7 +1275,7 @@ static void __devinit hpt374_init(struct pci_dev *dev, struct pci_dev *dev2) | |||
1275 | } | 1275 | } |
1276 | } | 1276 | } |
1277 | 1277 | ||
1278 | static void __devinit hpt371_init(struct pci_dev *dev) | 1278 | static void hpt371_init(struct pci_dev *dev) |
1279 | { | 1279 | { |
1280 | u8 mcr1 = 0; | 1280 | u8 mcr1 = 0; |
1281 | 1281 | ||
@@ -1290,7 +1290,7 @@ static void __devinit hpt371_init(struct pci_dev *dev) | |||
1290 | pci_write_config_byte(dev, 0x50, mcr1 & ~0x04); | 1290 | pci_write_config_byte(dev, 0x50, mcr1 & ~0x04); |
1291 | } | 1291 | } |
1292 | 1292 | ||
1293 | static int __devinit hpt36x_init(struct pci_dev *dev, struct pci_dev *dev2) | 1293 | static int hpt36x_init(struct pci_dev *dev, struct pci_dev *dev2) |
1294 | { | 1294 | { |
1295 | u8 mcr1 = 0, pin1 = 0, pin2 = 0; | 1295 | u8 mcr1 = 0, pin1 = 0, pin2 = 0; |
1296 | 1296 | ||
@@ -1361,7 +1361,7 @@ static const struct ide_dma_ops hpt36x_dma_ops = { | |||
1361 | .dma_sff_read_status = ide_dma_sff_read_status, | 1361 | .dma_sff_read_status = ide_dma_sff_read_status, |
1362 | }; | 1362 | }; |
1363 | 1363 | ||
1364 | static const struct ide_port_info hpt366_chipsets[] __devinitconst = { | 1364 | static const struct ide_port_info hpt366_chipsets[] = { |
1365 | { /* 0: HPT36x */ | 1365 | { /* 0: HPT36x */ |
1366 | .name = DRV_NAME, | 1366 | .name = DRV_NAME, |
1367 | .init_chipset = init_chipset_hpt366, | 1367 | .init_chipset = init_chipset_hpt366, |
@@ -1402,7 +1402,7 @@ static const struct ide_port_info hpt366_chipsets[] __devinitconst = { | |||
1402 | * Called when the PCI registration layer (or the IDE initialization) | 1402 | * Called when the PCI registration layer (or the IDE initialization) |
1403 | * finds a device matching our IDE device tables. | 1403 | * finds a device matching our IDE device tables. |
1404 | */ | 1404 | */ |
1405 | static int __devinit hpt366_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 1405 | static int hpt366_init_one(struct pci_dev *dev, const struct pci_device_id *id) |
1406 | { | 1406 | { |
1407 | const struct hpt_info *info = NULL; | 1407 | const struct hpt_info *info = NULL; |
1408 | struct hpt_info *dyn_info; | 1408 | struct hpt_info *dyn_info; |
@@ -1499,7 +1499,7 @@ static int __devinit hpt366_init_one(struct pci_dev *dev, const struct pci_devic | |||
1499 | return ret; | 1499 | return ret; |
1500 | } | 1500 | } |
1501 | 1501 | ||
1502 | static void __devexit hpt366_remove(struct pci_dev *dev) | 1502 | static void hpt366_remove(struct pci_dev *dev) |
1503 | { | 1503 | { |
1504 | struct ide_host *host = pci_get_drvdata(dev); | 1504 | struct ide_host *host = pci_get_drvdata(dev); |
1505 | struct ide_info *info = host->host_priv; | 1505 | struct ide_info *info = host->host_priv; |
@@ -1510,7 +1510,7 @@ static void __devexit hpt366_remove(struct pci_dev *dev) | |||
1510 | kfree(info); | 1510 | kfree(info); |
1511 | } | 1511 | } |
1512 | 1512 | ||
1513 | static const struct pci_device_id hpt366_pci_tbl[] __devinitconst = { | 1513 | static const struct pci_device_id hpt366_pci_tbl[] = { |
1514 | { PCI_VDEVICE(TTI, PCI_DEVICE_ID_TTI_HPT366), 0 }, | 1514 | { PCI_VDEVICE(TTI, PCI_DEVICE_ID_TTI_HPT366), 0 }, |
1515 | { PCI_VDEVICE(TTI, PCI_DEVICE_ID_TTI_HPT372), 1 }, | 1515 | { PCI_VDEVICE(TTI, PCI_DEVICE_ID_TTI_HPT372), 1 }, |
1516 | { PCI_VDEVICE(TTI, PCI_DEVICE_ID_TTI_HPT302), 2 }, | 1516 | { PCI_VDEVICE(TTI, PCI_DEVICE_ID_TTI_HPT302), 2 }, |
@@ -1525,7 +1525,7 @@ static struct pci_driver hpt366_pci_driver = { | |||
1525 | .name = "HPT366_IDE", | 1525 | .name = "HPT366_IDE", |
1526 | .id_table = hpt366_pci_tbl, | 1526 | .id_table = hpt366_pci_tbl, |
1527 | .probe = hpt366_init_one, | 1527 | .probe = hpt366_init_one, |
1528 | .remove = __devexit_p(hpt366_remove), | 1528 | .remove = hpt366_remove, |
1529 | .suspend = ide_pci_suspend, | 1529 | .suspend = ide_pci_suspend, |
1530 | .resume = ide_pci_resume, | 1530 | .resume = ide_pci_resume, |
1531 | }; | 1531 | }; |