aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-01-21 17:39:20 -0500
committerJens Axboe <axboe@kernel.dk>2014-01-21 23:16:56 -0500
commit28e6c50069ae55ff15da1e64245286cc27901b96 (patch)
tree75970fa2c41667be80e97f6266483780002531a2 /drivers/block
parent9dd6358a21daf4fc6a5b2b779267a62f0d1d3181 (diff)
drivers/block/sx8.c: use module_pci_driver()
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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/sx8.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c
index 3fb6ab4c8b4e..7b2ac9573984 100644
--- a/drivers/block/sx8.c
+++ b/drivers/block/sx8.c
@@ -1747,17 +1747,4 @@ static void carm_remove_one (struct pci_dev *pdev)
1747 pci_set_drvdata(pdev, NULL); 1747 pci_set_drvdata(pdev, NULL);
1748} 1748}
1749 1749
1750static int __init carm_init(void) 1750module_pci_driver(carm_driver);
1751{
1752 return pci_register_driver(&carm_driver);
1753}
1754
1755static void __exit carm_exit(void)
1756{
1757 pci_unregister_driver(&carm_driver);
1758}
1759
1760module_init(carm_init);
1761module_exit(carm_exit);
1762
1763