Commit 6a533309 authored by Peter Huewe's avatar Peter Huewe Committed by Rafael J. Wysocki

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: default avatarPeter Huewe <>
Signed-off-by: default avatarRafael J. Wysocki <>
parent 99c876be
...@@ -96,17 +96,5 @@ static struct pnp_driver idepnp_driver = { ...@@ -96,17 +96,5 @@ static struct pnp_driver idepnp_driver = {
.remove = idepnp_remove, .remove = idepnp_remove,
}; };
static int __init pnpide_init(void) module_pnp_driver(idepnp_driver);
return pnp_register_driver(&idepnp_driver);
static void __exit pnpide_exit(void)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment