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

PNP: ata/pata_isapnp: Use module_pnp_driver to register driver

Removing some boilerplate by using module_pnp_driver instead of calling
register and unregister in the otherwise empty init/exit functions

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Peter Huewe and committed by
Rafael J. Wysocki
99c876be 15516603

+1 -13
+1 -13
drivers/ata/pata_isapnp.c
··· 128 128 .remove = isapnp_remove_one, 129 129 }; 130 130 131 - static int __init isapnp_init(void) 132 - { 133 - return pnp_register_driver(&isapnp_driver); 134 - } 135 - 136 - static void __exit isapnp_exit(void) 137 - { 138 - pnp_unregister_driver(&isapnp_driver); 139 - } 140 - 131 + module_pnp_driver(isapnp_driver); 141 132 MODULE_AUTHOR("Alan Cox"); 142 133 MODULE_DESCRIPTION("low-level driver for ISA PnP ATA"); 143 134 MODULE_LICENSE("GPL"); 144 135 MODULE_VERSION(DRV_VERSION); 145 - 146 - module_init(isapnp_init); 147 - module_exit(isapnp_exit);