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/pata_it821x.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/pata_it821x.c')
-rw-r--r-- | drivers/ata/pata_it821x.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index 82a46ff40000..18ff3e59a89b 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c | |||
@@ -808,14 +808,15 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
808 | return ata_pci_init_one(pdev, port_info, 2); | 808 | return ata_pci_init_one(pdev, port_info, 2); |
809 | } | 809 | } |
810 | 810 | ||
811 | static struct pci_device_id it821x[] = { | 811 | static const struct pci_device_id it821x[] = { |
812 | { PCI_DEVICE(PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_8211), }, | 812 | { PCI_VDEVICE(ITE, PCI_DEVICE_ID_ITE_8211), }, |
813 | { PCI_DEVICE(PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_8212), }, | 813 | { PCI_VDEVICE(ITE, PCI_DEVICE_ID_ITE_8212), }, |
814 | { 0, }, | 814 | |
815 | { }, | ||
815 | }; | 816 | }; |
816 | 817 | ||
817 | static struct pci_driver it821x_pci_driver = { | 818 | static struct pci_driver it821x_pci_driver = { |
818 | .name = DRV_NAME, | 819 | .name = DRV_NAME, |
819 | .id_table = it821x, | 820 | .id_table = it821x, |
820 | .probe = it821x_init_one, | 821 | .probe = it821x_init_one, |
821 | .remove = ata_pci_remove_one | 822 | .remove = ata_pci_remove_one |
@@ -826,13 +827,11 @@ static int __init it821x_init(void) | |||
826 | return pci_register_driver(&it821x_pci_driver); | 827 | return pci_register_driver(&it821x_pci_driver); |
827 | } | 828 | } |
828 | 829 | ||
829 | |||
830 | static void __exit it821x_exit(void) | 830 | static void __exit it821x_exit(void) |
831 | { | 831 | { |
832 | pci_unregister_driver(&it821x_pci_driver); | 832 | pci_unregister_driver(&it821x_pci_driver); |
833 | } | 833 | } |
834 | 834 | ||
835 | |||
836 | MODULE_AUTHOR("Alan Cox"); | 835 | MODULE_AUTHOR("Alan Cox"); |
837 | MODULE_DESCRIPTION("low-level driver for the IT8211/IT8212 IDE RAID controller"); | 836 | MODULE_DESCRIPTION("low-level driver for the IT8211/IT8212 IDE RAID controller"); |
838 | MODULE_LICENSE("GPL"); | 837 | MODULE_LICENSE("GPL"); |