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, 4 Oct 2010 08:54:05 +0000 (10:54 +0200)
commit4d1814f48edec31f12737609cd1c871864c8298b
tree26cf216f99555256af0d39507219d8263919b981
parent5140434d5f82f2e2119926272ada2e9731ec04f1
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>
arch/arm/oprofile/common.c