powerpc/mpic: handle subsys_system_register() failure
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Tue, 26 Apr 2016 07:55:04 +0000 (17:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Apr 2016 23:23:41 +0000 (09:23 +1000)
commit4ad5e8831e1cb663f17112e44406b5ca9649ba1f
tree0d4d7abda81c52fb468ca552d8b8accec5685755
parent2d5217840ff1d0cf0f88201a922ab35bd083f7fb
powerpc/mpic: handle subsys_system_register() failure

mpic_init_sys() currently doesn't check whether
subsys_system_register() succeeded or not. Check the return code of
subsys_system_register() and clean up if there's an error.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/mpic.c