Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
Jens Axboe
28e6c500 9dd6358a

+1 -14
+1 -14
drivers/block/sx8.c
··· 1747 1747 pci_set_drvdata(pdev, NULL); 1748 1748 } 1749 1749 1750 - static int __init carm_init(void) 1751 - { 1752 - return pci_register_driver(&carm_driver); 1753 - } 1754 - 1755 - static void __exit carm_exit(void) 1756 - { 1757 - pci_unregister_driver(&carm_driver); 1758 - } 1759 - 1760 - module_init(carm_init); 1761 - module_exit(carm_exit); 1762 - 1763 - 1750 + module_pci_driver(carm_driver);