perf: xgene: Remove unnecessary managed resources cleanup
authorTai Nguyen <ttnguyen@apm.com>
Thu, 13 Jul 2017 18:19:08 +0000 (11:19 -0700)
committerWill Deacon <will.deacon@arm.com>
Tue, 8 Aug 2017 13:33:13 +0000 (14:33 +0100)
commitc1be2ddb1e25ecf425d93a81dc64a650b9ff3107
tree58c04ac26b86a51e9c1bef3476d94d404d341add
parent1031a1592908ccd3240f4a5731c96c382c932310
perf: xgene: Remove unnecessary managed resources cleanup

Managed resources in the driver should be automatically cleaned up on
driver detach. It's unnecessary to manually free/unmmap these resources.
One of the manual cleanup causes static checkers to complain.
The bug is reported by Dan Carpenter <dan.carpenter@oracle.com> in [1]

[1] https://www.spinics.net/lists/arm-kernel/msg593012.html

This patch gets rid of all the unnecessary manual cleanup and properly
unregister all the registered PMU devices by the driver on driver detach.

Signed-off-by: Tai Nguyen <ttnguyen@apm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/xgene_pmu.c