Commit 1ccd7d68 authored by Ondrej Zary's avatar Ondrej Zary Committed by Martin K. Petersen

atp870u: Use module_pci_driver

Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
Reviewed-by: default avatarHannes Reinicke <hare@suse.de>
Acked-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c4ad92bc
......@@ -1785,21 +1785,7 @@ static struct pci_driver atp870u_driver = {
.remove = atp870u_remove,
};
static int __init atp870u_init(void)
{
#ifdef ED_DBGP
printk("atp870u_init: Entry\n");
#endif
return pci_register_driver(&atp870u_driver);
}
static void __exit atp870u_exit(void)
{
#ifdef ED_DBGP
printk("atp870u_exit: Entry\n");
#endif
pci_unregister_driver(&atp870u_driver);
}
module_pci_driver(atp870u_driver);
static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsigned char lvdmode)
{
......@@ -2406,7 +2392,3 @@ static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsign
#endif
}
}
module_init(atp870u_init);
module_exit(atp870u_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment