scsi: wd719x: Use module_pci_driver

Remove boilerplate code by using macro module_pci_driver.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
YueHaibing 2018-04-21 18:58:34 +08:00 committed by Martin K. Petersen
parent 5f1c721196
commit 3e1bbc5685
1 changed files with 1 additions and 12 deletions

View File

@ -978,18 +978,7 @@ static struct pci_driver wd719x_pci_driver = {
.remove = wd719x_pci_remove, .remove = wd719x_pci_remove,
}; };
static int __init wd719x_init(void) module_pci_driver(wd719x_pci_driver);
{
return pci_register_driver(&wd719x_pci_driver);
}
static void __exit wd719x_exit(void)
{
pci_unregister_driver(&wd719x_pci_driver);
}
module_init(wd719x_init);
module_exit(wd719x_exit);
MODULE_DESCRIPTION("Western Digital WD7193/7197/7296 SCSI driver"); MODULE_DESCRIPTION("Western Digital WD7193/7197/7296 SCSI driver");
MODULE_AUTHOR("Ondrej Zary, Aaron Dewell, Juergen Gaertner"); MODULE_AUTHOR("Ondrej Zary, Aaron Dewell, Juergen Gaertner");