oprofile, ARM: Use oprofile_arch_exit() to cleanup on failure
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Sep 2010 13:42:30 +0000 (15:42 +0200)
committerRobert Richter <robert.richter@amd.com>
Mon, 11 Oct 2010 17:34:04 +0000 (19:34 +0200)
commite9677b3ce207a07fad5746b6f7ddc70cae79de0a
treefd94cd24431c1c853372bea47f662e50a7ea4bcf
parent2bcb2b641a8f1524f7a9801eb9e52a00b8f18c6e
oprofile, ARM: Use oprofile_arch_exit() to cleanup on failure

There is duplicate cleanup code in the init and exit functions. Now,
oprofile_arch_exit() is also used if oprofile_arch_init() fails.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/oprofile_perf.c