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_cs5530.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_cs5530.c')
-rw-r--r-- | drivers/ata/pata_cs5530.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/ata/pata_cs5530.c b/drivers/ata/pata_cs5530.c index 7bba4d954e9c..a07cc81ef791 100644 --- a/drivers/ata/pata_cs5530.c +++ b/drivers/ata/pata_cs5530.c | |||
@@ -353,13 +353,14 @@ fail_put: | |||
353 | return -ENODEV; | 353 | return -ENODEV; |
354 | } | 354 | } |
355 | 355 | ||
356 | static struct pci_device_id cs5530[] = { | 356 | static const struct pci_device_id cs5530[] = { |
357 | { PCI_DEVICE(PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_IDE), }, | 357 | { PCI_VDEVICE(CYRIX, PCI_DEVICE_ID_CYRIX_5530_IDE), }, |
358 | { 0, }, | 358 | |
359 | { }, | ||
359 | }; | 360 | }; |
360 | 361 | ||
361 | static struct pci_driver cs5530_pci_driver = { | 362 | static struct pci_driver cs5530_pci_driver = { |
362 | .name = DRV_NAME, | 363 | .name = DRV_NAME, |
363 | .id_table = cs5530, | 364 | .id_table = cs5530, |
364 | .probe = cs5530_init_one, | 365 | .probe = cs5530_init_one, |
365 | .remove = ata_pci_remove_one | 366 | .remove = ata_pci_remove_one |
@@ -370,13 +371,11 @@ static int __init cs5530_init(void) | |||
370 | return pci_register_driver(&cs5530_pci_driver); | 371 | return pci_register_driver(&cs5530_pci_driver); |
371 | } | 372 | } |
372 | 373 | ||
373 | |||
374 | static void __exit cs5530_exit(void) | 374 | static void __exit cs5530_exit(void) |
375 | { | 375 | { |
376 | pci_unregister_driver(&cs5530_pci_driver); | 376 | pci_unregister_driver(&cs5530_pci_driver); |
377 | } | 377 | } |
378 | 378 | ||
379 | |||
380 | MODULE_AUTHOR("Alan Cox"); | 379 | MODULE_AUTHOR("Alan Cox"); |
381 | MODULE_DESCRIPTION("low-level driver for the Cyrix/NS/AMD 5530"); | 380 | MODULE_DESCRIPTION("low-level driver for the Cyrix/NS/AMD 5530"); |
382 | MODULE_LICENSE("GPL"); | 381 | MODULE_LICENSE("GPL"); |