Skip to content

Commit

Permalink
scsi: wd719x: Use module_pci_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Martin K. Petersen committed May 2, 2018
1 parent 5f1c721 commit 3e1bbc5
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/scsi/wd719x.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,18 +978,7 @@ static struct pci_driver wd719x_pci_driver = {
.remove = wd719x_pci_remove,
};

static int __init wd719x_init(void)
{
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_pci_driver(wd719x_pci_driver);

MODULE_DESCRIPTION("Western Digital WD7193/7197/7296 SCSI driver");
MODULE_AUTHOR("Ondrej Zary, Aaron Dewell, Juergen Gaertner");
Expand Down

0 comments on commit 3e1bbc5

Please sign in to comment.