diff options
Diffstat (limited to 'drivers/ata/pata_mpiix.c')
-rw-r--r-- | drivers/ata/pata_mpiix.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ata/pata_mpiix.c b/drivers/ata/pata_mpiix.c index 9dc16df84191..1f5f28bb0bb8 100644 --- a/drivers/ata/pata_mpiix.c +++ b/drivers/ata/pata_mpiix.c | |||
@@ -230,21 +230,10 @@ static struct pci_driver mpiix_pci_driver = { | |||
230 | #endif | 230 | #endif |
231 | }; | 231 | }; |
232 | 232 | ||
233 | static int __init mpiix_init(void) | 233 | module_pci_driver(mpiix_pci_driver); |
234 | { | ||
235 | return pci_register_driver(&mpiix_pci_driver); | ||
236 | } | ||
237 | |||
238 | static void __exit mpiix_exit(void) | ||
239 | { | ||
240 | pci_unregister_driver(&mpiix_pci_driver); | ||
241 | } | ||
242 | 234 | ||
243 | MODULE_AUTHOR("Alan Cox"); | 235 | MODULE_AUTHOR("Alan Cox"); |
244 | MODULE_DESCRIPTION("low-level driver for Intel MPIIX"); | 236 | MODULE_DESCRIPTION("low-level driver for Intel MPIIX"); |
245 | MODULE_LICENSE("GPL"); | 237 | MODULE_LICENSE("GPL"); |
246 | MODULE_DEVICE_TABLE(pci, mpiix); | 238 | MODULE_DEVICE_TABLE(pci, mpiix); |
247 | MODULE_VERSION(DRV_VERSION); | 239 | MODULE_VERSION(DRV_VERSION); |
248 | |||
249 | module_init(mpiix_init); | ||
250 | module_exit(mpiix_exit); | ||