ata: use module_pci_driver
This patch converts the drivers in drivers/ata/* to use module_pci_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Alan Cox <alan@linux.intel.com> Cc: Jeff Garzik <jgarzik@pobox.com> Cc: Mikael Pettersson <mikpe@it.uu.se> Cc: Mark Lord <kernel@teksavvy.com> Cc: Jeremy Higdon <jeremy@sgi.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:

committed by
Jeff Garzik

orang tua
b08f5bc404
melakukan
2fc75da0c5
@@ -655,15 +655,4 @@ static int svia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
IRQF_SHARED, &svia_sht);
|
||||
}
|
||||
|
||||
static int __init svia_init(void)
|
||||
{
|
||||
return pci_register_driver(&svia_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit svia_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&svia_pci_driver);
|
||||
}
|
||||
|
||||
module_init(svia_init);
|
||||
module_exit(svia_exit);
|
||||
module_pci_driver(svia_pci_driver);
|
||||
|
Reference in New Issue
Block a user