]> git.hungrycats.org Git - linux/commit
[PATCH] fix oopses on rmmod in some OSS drivers
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Mon, 5 Jan 2004 13:39:29 +0000 (05:39 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 5 Jan 2004 13:39:29 +0000 (05:39 -0800)
commit67215df9a8abf1e090b567fd2f4b550d1079ac3c
tree64a4fe3654f23a8fe8389243ce470880d380ca02
parent00c45815e8572e763089b7f0faa9f3ecf625038e
[PATCH] fix oopses on rmmod in some OSS drivers

Fix for oops on rmmod caused by *_remove() function marked as __devinit
(and thus discarded after module initialization - if CONFIG_MODULES=y
and CONFIG_HOTPLUG is not set).
This patch changes __devinit to __devexit and adds __devexit_p() where
pointer to such function is used.

The only exception is au1000, where au1000_remove() is called from
cleanup_au1000() function - __devinit is jest removed there.
sound/oss/au1000.c
sound/oss/cs4281/cs4281m.c
sound/oss/cs46xx.c
sound/oss/es1370.c
sound/oss/es1371.c
sound/oss/esssolo1.c
sound/oss/ite8172.c
sound/oss/nec_vrc5477.c
sound/oss/rme96xx.c
sound/oss/sonicvibes.c