From: Will Deacon Date: Sun, 29 Aug 2010 18:52:00 +0000 (-0400) Subject: ARM: oprofile: fix and simplify init/exit functions X-Git-Tag: v2.6.37-rc1~214^2~18^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7fd239a647ead1c336a051012d6bb96465ea8c6;p=pandora-kernel.git ARM: oprofile: fix and simplify init/exit functions Now that oprofile_arch_exit is only called when the OProfile module is unloaded, it can assume that init completed successfully and not have to worry about double frees or releasing NULL perf events. This patch ensures that oprofile_arch_init fails gracefully on ARM and simplifies the exit code based on the above. Cc: Robert Richter Cc: Matt Fleming Cc: Peter Zijlstra Cc: Ingo Molnar Signed-off-by: Will Deacon Signed-off-by: Robert Richter --- Reading git-diff-tree failed