summaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorPeter Huewe <PeterHuewe@gmx.de>2015-03-16 21:46:33 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-03-18 22:39:17 +0100
commit6a5333092e4674c1e1f7de05ce6a167273f5afdb (patch)
treeba6e2ba8e47cc4dd89eff998bf21551aeb220abd /drivers/ide
parent99c876bec30d064679c07d53b44a4e99da10f576 (diff)
downloadlinux-6a5333092e4674c1e1f7de05ce6a167273f5afdb.tar.bz2
PNP: ide/ide-pnp: 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>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-pnp.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/ide/ide-pnp.c b/drivers/ide/ide-pnp.c
index e5f3db831373..f5f2b62471da 100644
--- a/drivers/ide/ide-pnp.c
+++ b/drivers/ide/ide-pnp.c
@@ -96,17 +96,5 @@ static struct pnp_driver idepnp_driver = {
.remove = idepnp_remove,
};
-static int __init pnpide_init(void)
-{
- return pnp_register_driver(&idepnp_driver);
-}
-
-static void __exit pnpide_exit(void)
-{
- pnp_unregister_driver(&idepnp_driver);
-}
-
-module_init(pnpide_init);
-module_exit(pnpide_exit);
-
+module_pnp_driver(idepnp_driver);
MODULE_LICENSE("GPL");