TC: Error handling clean-ups
authorMaciej W. Rozycki <macro@linux-mips.org>
Sun, 6 Apr 2014 19:52:37 +0000 (20:52 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:25 +0000 (07:45 +0100)
commite2afb7de6e7dad21f9d709f80f23bbd3c5bdad11
tree4f12f7bc3f050cf3a0d889c5ea9c852fbd486af0
parent187c26ddf0b201aeb7e343be19a3da72eef19db4
TC: Error handling clean-ups

Rewrite TURBOchannel error handling to use a common failure path, making
sure put_device is called for devices that failed initialization.  While
at it update printk calls to use pr_err rather than KERN_ERR.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6701/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/tc/tc.c