mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
atp870u: Use module_pci_driver
Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Hannes Reinicke <hare@suse.de> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
c4ad92bce0
commit
1ccd7d68fc
1 changed files with 1 additions and 19 deletions
|
@ -1785,21 +1785,7 @@ static struct pci_driver atp870u_driver = {
|
||||||
.remove = atp870u_remove,
|
.remove = atp870u_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init atp870u_init(void)
|
module_pci_driver(atp870u_driver);
|
||||||
{
|
|
||||||
#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);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsigned char lvdmode)
|
static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsigned char lvdmode)
|
||||||
{
|
{
|
||||||
|
@ -2406,7 +2392,3 @@ set_syn_ok:
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module_init(atp870u_init);
|
|
||||||
module_exit(atp870u_exit);
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue