diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-16 13:58:47 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-14 18:21:25 -0500 |
commit | a6fd6063e76ecab6a93c3874d37a1b4cef2e578f (patch) | |
tree | 9362fd64c8470054fcd32d1d5e7904281639ec96 /drivers/ide | |
parent | 58e48be72d675b53e57982fc5301ec1b2dbda280 (diff) | |
download | linux-stable-a6fd6063e76ecab6a93c3874d37a1b4cef2e578f.tar.gz linux-stable-a6fd6063e76ecab6a93c3874d37a1b4cef2e578f.tar.bz2 linux-stable-a6fd6063e76ecab6a93c3874d37a1b4cef2e578f.zip |
ide: cs5536: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/cs5536.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ide/cs5536.c b/drivers/ide/cs5536.c index 24214ab60ac0..de9185db41d4 100644 --- a/drivers/ide/cs5536.c +++ b/drivers/ide/cs5536.c @@ -295,15 +295,7 @@ static struct pci_driver cs5536_pci_driver = { .resume = ide_pci_resume, }; -static int __init cs5536_init(void) -{ - return pci_register_driver(&cs5536_pci_driver); -} - -static void __exit cs5536_exit(void) -{ - pci_unregister_driver(&cs5536_pci_driver); -} +module_pci_driver(cs5536_pci_driver); MODULE_AUTHOR("Martin K. Petersen, Bartlomiej Zolnierkiewicz"); MODULE_DESCRIPTION("low-level driver for the CS5536 IDE controller"); @@ -312,6 +304,3 @@ MODULE_DEVICE_TABLE(pci, cs5536_pci_tbl); module_param_named(msr, use_msr, int, 0644); MODULE_PARM_DESC(msr, "Force using MSR to configure IDE function (Default: 0)"); - -module_init(cs5536_init); -module_exit(cs5536_exit); |