Skip to content

Commit

Permalink
drivers/block/sx8.c: use module_pci_driver()
Browse files Browse the repository at this point in the history
Use module_pci_driver() macro which makes the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jingoo Han authored and Jens Axboe committed Jan 22, 2014
1 parent 9dd6358 commit 28e6c50
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/block/sx8.c
Original file line number Diff line number Diff line change
Expand Up @@ -1747,17 +1747,4 @@ static void carm_remove_one (struct pci_dev *pdev)
pci_set_drvdata(pdev, NULL);
}

static int __init carm_init(void)
{
return pci_register_driver(&carm_driver);
}

static void __exit carm_exit(void)
{
pci_unregister_driver(&carm_driver);
}

module_init(carm_init);
module_exit(carm_exit);


module_pci_driver(carm_driver);

0 comments on commit 28e6c50

Please sign in to comment.