[PATCH] capi: register_chrdev() fix
authorAndrew Morton <akpm@osdl.org>
Tue, 28 Mar 2006 09:56:19 +0000 (01:56 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 28 Mar 2006 17:16:02 +0000 (09:16 -0800)
commit6d9eac34104654aa129e365b8d48bbb8c957f186
tree47b81aaebb9903df4bdaacad963ca4ee2bf04204
parent829d5f68ec59ff7c0fdd472132680df8e4b64f3e
[PATCH] capi: register_chrdev() fix

If the user specified `major=0' (odd thing to do), capi.c will use dynamic
allocation.  We need to pick up that major for subsequent unregister_chrdev().

Acked-by: 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