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

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>

authored by

Jingoo Han and committed by
David S. Miller
a6fd6063 58e48be7

+1 -12
+1 -12
drivers/ide/cs5536.c
··· 295 295 .resume = ide_pci_resume, 296 296 }; 297 297 298 - static int __init cs5536_init(void) 299 - { 300 - return pci_register_driver(&cs5536_pci_driver); 301 - } 302 - 303 - static void __exit cs5536_exit(void) 304 - { 305 - pci_unregister_driver(&cs5536_pci_driver); 306 - } 298 + module_pci_driver(cs5536_pci_driver); 307 299 308 300 MODULE_AUTHOR("Martin K. Petersen, Bartlomiej Zolnierkiewicz"); 309 301 MODULE_DESCRIPTION("low-level driver for the CS5536 IDE controller"); ··· 304 312 305 313 module_param_named(msr, use_msr, int, 0644); 306 314 MODULE_PARM_DESC(msr, "Force using MSR to configure IDE function (Default: 0)"); 307 - 308 - module_init(cs5536_init); 309 - module_exit(cs5536_exit);