TC: Handle device_register() errors.
authorLevente Kurusa <levex@linux.com>
Wed, 2 Apr 2014 10:00:37 +0000 (12:00 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 26 Jun 2014 09:48:23 +0000 (10:48 +0100)
commit5bb7889f440532f3dbbffdb6b3b0881a805abbce
tree0695a215dff706cd59a829bff10296fa10876eeb
parentab6c15bc6620ebe220970cc040b29bcb2757f373
TC: Handle device_register() errors.

Make the TURBOchannel driver bail out if the call to device_register()
failed.

Signed-off-by: Levente Kurusa <levex@linux.com>
Acked-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Cc: Linux MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/6673/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/tc/tc.c