diff options
author | Tejun Heo <htejun@gmail.com> | 2007-01-27 13:47:02 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-01-27 13:47:02 +0100 |
commit | 6855036aa035913bc2bfb31c41576a49f42ecd5f (patch) | |
tree | 7524fa60ef1a36ea6630a9b6613cb7099875569d /drivers/ide/ide-pnp.c | |
parent | 82ab1eeceba6705cd5a8815c48eb03af1dada744 (diff) | |
download | op-kernel-dev-6855036aa035913bc2bfb31c41576a49f42ecd5f.zip op-kernel-dev-6855036aa035913bc2bfb31c41576a49f42ecd5f.tar.gz |
ide: unregister idepnp driver on unload
idepnp driver is registered as a pnp driver on ide init but doesn't
get unregistered on ide unload causing driver list corruption and
eventually oops. Fix it.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-pnp.c')
-rw-r--r-- | drivers/ide/ide-pnp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ide/ide-pnp.c b/drivers/ide/ide-pnp.c index df7d150..98410ca 100644 --- a/drivers/ide/ide-pnp.c +++ b/drivers/ide/ide-pnp.c @@ -73,3 +73,8 @@ void __init pnpide_init(void) { pnp_register_driver(&idepnp_driver); } + +void __exit pnpide_exit(void) +{ + pnp_unregister_driver(&idepnp_driver); +} |