From: Akinobu Mita Date: Fri, 8 Dec 2006 10:39:33 +0000 (-0800) Subject: [PATCH] isdn: fix missing unregister_capi_driver X-Git-Tag: v2.6.20-rc1~34^2~146 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ba6d14aff4112b9518856d2d3979a386cb3a2945;p=linux-2.6-omap-h63xx.git [PATCH] isdn: fix missing unregister_capi_driver unregister_capi_driver() needs to be called in module cleanup. (It fixes data corruption by reloading t1isa driver) Cc: Kai Germaschewski Acked-by: Karsten Keil Signed-off-by: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/isdn/hardware/avm/t1isa.c b/drivers/isdn/hardware/avm/t1isa.c index e47c60b0a8e..c925020fe9b 100644 --- a/drivers/isdn/hardware/avm/t1isa.c +++ b/drivers/isdn/hardware/avm/t1isa.c @@ -584,6 +584,7 @@ static void __exit t1isa_exit(void) { int i; + unregister_capi_driver(&capi_driver_t1isa); for (i = 0; i < MAX_CARDS; i++) { if (!io[i]) break;