powerpc/via-pmu: fix error path in find_via_pmu()
authorPhil Carmody <pc+lkml@asdf.org>
Tue, 16 Sep 2014 22:00:53 +0000 (01:00 +0300)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 17 Mar 2015 00:56:34 +0000 (11:56 +1100)
Cleanup was not in the reverse order from the set-up, so not all
the gotos made sense, and also it was being avoided completely upon
failure of init_pmu().

Signed-off-by: Phil Carmody <pc+lkml@asdf.org>
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

No differences found