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)
commitffa3eb010dd8edc696cd958ba684d8a6d1cf3dff
treee6ec1d93d93eae5913d3161bc81352b36f02b026
parentb05ae4ee602b7dc90771408ccf0972e1b3801a35
powerpc/via-pmu: fix error path in find_via_pmu()

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>
drivers/macintosh/via-pmu.c