]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit226bb792b7b7cb369f58db192b018b769763aaf8
tree58c04ac26b86a51e9c1bef3476d94d404d341add
parente30456666e3a33b721418f56fdcc8a8364fe8594
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