[PATCH] pcmcia/ds: handle any error code
authorRandy Dunlap <rdunlap@xenotime.net>
Tue, 17 May 2005 04:53:56 +0000 (21:53 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:21 +0000 (07:59 -0700)
commitafbf510d47c4009f5d67ec3c0e0b45eb0441bca3
tree129434483daa8180e35751f231d28045f9e8ead0
parent24d568ed1b97cb93c2a917cd90296655a8b661a6
[PATCH] pcmcia/ds: handle any error code

register_chrdev() can return errors (negative) other then -EBUSY, so check
for any negative error code.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pcmcia/ds.c