aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-pnp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-pnp.c')
-rw-r--r--drivers/ide/ide-pnp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/ide/ide-pnp.c b/drivers/ide/ide-pnp.c
index 802efd4d9760..cbbb0f75be92 100644
--- a/drivers/ide/ide-pnp.c
+++ b/drivers/ide/ide-pnp.c
@@ -75,12 +75,15 @@ static struct pnp_driver idepnp_driver = {
75 .remove = idepnp_remove, 75 .remove = idepnp_remove,
76}; 76};
77 77
78void __init pnpide_init(void) 78static int __init pnpide_init(void)
79{ 79{
80 pnp_register_driver(&idepnp_driver); 80 return pnp_register_driver(&idepnp_driver);
81} 81}
82 82
83void __exit pnpide_exit(void) 83static void __exit pnpide_exit(void)
84{ 84{
85 pnp_unregister_driver(&idepnp_driver); 85 pnp_unregister_driver(&idepnp_driver);
86} 86}
87
88module_init(pnpide_init);
89module_exit(pnpide_exit);