coresight: Remove erroneous dma_free_coherent in tmc_probe
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 25 Aug 2016 21:18:54 +0000 (15:18 -0600)
committerAlex Shi <alex.shi@linaro.org>
Thu, 23 Mar 2017 03:59:05 +0000 (11:59 +0800)
commit5f642b4ad6b579bbdca82f690c2de314eccae507
treed6f5a849b0e3779d48bd1ed383bfdba2826f5e0d
parenta877498ddb55fce5f94674e4d0b39747932ef6b8
coresight: Remove erroneous dma_free_coherent in tmc_probe

commit de5461970b3e9e194 ("coresight: tmc: allocating memory when needed")
removed the static allocation of buffer for the trace data in ETR mode in
tmc_probe. However it failed to remove the "devm_free_coherent" in
tmc_probe when the probe fails due to other reasons. This patch gets
rid of the incorrect dma_free_coherent() call.

Fixes: commit de5461970b3e9e194 ("coresight: tmc: allocating memory when needed")
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 481e46fe7a88557b66330cbb047b25cc13eff4b9)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/hwtracing/coresight/coresight-tmc.c