powerpc/vas: Fix cleanup when VAS is not configured
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Fri, 9 Feb 2018 17:49:06 +0000 (11:49 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Mar 2018 09:11:37 +0000 (20:11 +1100)
commit45ddea8a73a25461387eb8e87f3e0ecca084799b
treec5944db09cf3f45f1fb35f9042e020e33c3ec61b
parent720c84046c26444fe825f8614ddceb5c46539e67
powerpc/vas: Fix cleanup when VAS is not configured

When VAS is not configured, unregister the platform driver. Also simplify
cleanup by delaying vas debugfs init until we know VAS is configured.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/vas-debug.c
arch/powerpc/platforms/powernv/vas.c