parisc/superio: Use module_pci_driver to register driver
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Родитель
b63a2bbc0b
Коммит
2c2d32bed1
|
@ -494,15 +494,4 @@ static struct pci_driver superio_driver = {
|
|||
.probe = superio_probe,
|
||||
};
|
||||
|
||||
static int __init superio_modinit(void)
|
||||
{
|
||||
return pci_register_driver(&superio_driver);
|
||||
}
|
||||
|
||||
static void __exit superio_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&superio_driver);
|
||||
}
|
||||
|
||||
module_init(superio_modinit);
|
||||
module_exit(superio_exit);
|
||||
module_pci_driver(superio_driver);
|
||||
|
|
Загрузка…
Ссылка в новой задаче