[PATCH] Fix capi reload by unregistering the correct major
authorStefan Schweizer <genstef@gentoo.org>
Mon, 15 May 2006 16:43:52 +0000 (09:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 15 May 2006 18:20:54 +0000 (11:20 -0700)
commit90d5ede5985f3b172cc3ccd89bf8c52a209088a5
tree3163c41681c1cf7d90a7c272c82378413198d16f
parenta5370553952a9a414860d878b67c49eff11313bd
[PATCH] Fix capi reload by unregistering the correct major

I am having the bug FATAL: Error inserting capi ([..]/capi.ko): Device or
resource busy when I try to reload capi after loading it.  in dmesg:
capi20: unable to get major 68

Fix the issue which is caused by setting the major to zero when registering
the chrdev succeeded.

(akpm: this means that we can again not use `major=0' (dynamic major
allocation) for this driver).

Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/capi/capi.c