TC: Handle device_register() errors.
TC: Handle device_register() errors.

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

Signed-off-by: Levente Kurusa <d1859d17f37a0d46a2ca0209ee86c52f8a68888f@linux.com>
Acked-by: Maciej W. Rozycki <78f3a3d9d6e4d907a7d12e475d0a751d6b7e256b@linux-mips.org>
Cc: LKML <2578944098299abf708b08eff6fcf60565553586@vger.kernel.org>
Cc: Linux MIPS <562397917b9a8bf316569a848858b12fb417723f@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/6673/
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs