diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-09-28 20:21:59 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-28 20:21:59 -0400 |
commit | 2d2744fc8be620a2dc469cf48349e3e704119f1b (patch) | |
tree | 86dde4c7fc9ec18127d1aa3a748e0bc4e8ad03f3 /drivers/ata/sata_vsc.c | |
parent | 35aa7a436c0901fd6f352eff347f58448c141a25 (diff) |
[libata] PCI ID table cleanup in various drivers
* Use PCI_VDEVICE() macro
* const-ify pci_device_id table
* standardize list terminator as "{ }"
* convert spaces to tab in pci_driver struct (Alan-ism)
* various minor whitespace cleanups
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_vsc.c')
-rw-r--r-- | drivers/ata/sata_vsc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ata/sata_vsc.c b/drivers/ata/sata_vsc.c index d0d92f33de54..273d88fcf980 100644 --- a/drivers/ata/sata_vsc.c +++ b/drivers/ata/sata_vsc.c | |||
@@ -442,16 +442,15 @@ err_out: | |||
442 | return rc; | 442 | return rc; |
443 | } | 443 | } |
444 | 444 | ||
445 | |||
446 | static const struct pci_device_id vsc_sata_pci_tbl[] = { | 445 | static const struct pci_device_id vsc_sata_pci_tbl[] = { |
447 | { PCI_VENDOR_ID_VITESSE, 0x7174, | 446 | { PCI_VENDOR_ID_VITESSE, 0x7174, |
448 | PCI_ANY_ID, PCI_ANY_ID, 0x10600, 0xFFFFFF, 0 }, | 447 | PCI_ANY_ID, PCI_ANY_ID, 0x10600, 0xFFFFFF, 0 }, |
449 | { PCI_VENDOR_ID_INTEL, 0x3200, | 448 | { PCI_VENDOR_ID_INTEL, 0x3200, |
450 | PCI_ANY_ID, PCI_ANY_ID, 0x10600, 0xFFFFFF, 0 }, | 449 | PCI_ANY_ID, PCI_ANY_ID, 0x10600, 0xFFFFFF, 0 }, |
450 | |||
451 | { } /* terminate list */ | 451 | { } /* terminate list */ |
452 | }; | 452 | }; |
453 | 453 | ||
454 | |||
455 | static struct pci_driver vsc_sata_pci_driver = { | 454 | static struct pci_driver vsc_sata_pci_driver = { |
456 | .name = DRV_NAME, | 455 | .name = DRV_NAME, |
457 | .id_table = vsc_sata_pci_tbl, | 456 | .id_table = vsc_sata_pci_tbl, |
@@ -459,19 +458,16 @@ static struct pci_driver vsc_sata_pci_driver = { | |||
459 | .remove = ata_pci_remove_one, | 458 | .remove = ata_pci_remove_one, |
460 | }; | 459 | }; |
461 | 460 | ||
462 | |||
463 | static int __init vsc_sata_init(void) | 461 | static int __init vsc_sata_init(void) |
464 | { | 462 | { |
465 | return pci_register_driver(&vsc_sata_pci_driver); | 463 | return pci_register_driver(&vsc_sata_pci_driver); |
466 | } | 464 | } |
467 | 465 | ||
468 | |||
469 | static void __exit vsc_sata_exit(void) | 466 | static void __exit vsc_sata_exit(void) |
470 | { | 467 | { |
471 | pci_unregister_driver(&vsc_sata_pci_driver); | 468 | pci_unregister_driver(&vsc_sata_pci_driver); |
472 | } | 469 | } |
473 | 470 | ||
474 | |||
475 | MODULE_AUTHOR("Jeremy Higdon"); | 471 | MODULE_AUTHOR("Jeremy Higdon"); |
476 | MODULE_DESCRIPTION("low-level driver for Vitesse VSC7174 SATA controller"); | 472 | MODULE_DESCRIPTION("low-level driver for Vitesse VSC7174 SATA controller"); |
477 | MODULE_LICENSE("GPL"); | 473 | MODULE_LICENSE("GPL"); |