ioc3/ioc4: fix error path on driver registration
authorJean Delvare <khali@linux-fr.org>
Tue, 15 Dec 2009 02:00:28 +0000 (18:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:27 +0000 (08:53 -0800)
commit9385565e20c4acf97cd8e2fd7155750e578edcc4
tree55ee76523bb308ef73a2f91942953db6b79fe1c9
parent2ea5d35a49f5c89d1d2d677fe90c71ad5a6278b6
ioc3/ioc4: fix error path on driver registration

Two IOC3 and IOC4 drivers have broken error paths on registration.  Fix
them.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Pat Gefre <pfg@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/ioc4_serial.c
drivers/sn/ioc3.c