diff options
author | Tai Nguyen <ttnguyen@apm.com> | 2017-07-13 20:19:08 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-08-08 15:33:13 +0200 |
commit | c1be2ddb1e25ecf425d93a81dc64a650b9ff3107 (patch) | |
tree | 58c04ac26b86a51e9c1bef3476d94d404d341add /drivers/perf/arm_pmu.c | |
parent | arm64: perf: Allow more than one cycle counter to be used (diff) | |
download | linux-c1be2ddb1e25ecf425d93a81dc64a650b9ff3107.tar.xz linux-c1be2ddb1e25ecf425d93a81dc64a650b9ff3107.zip |
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>
Diffstat (limited to 'drivers/perf/arm_pmu.c')
0 files changed, 0 insertions, 0 deletions