coresight: fix the unbalanced qdss_clock count

In an unsuccessful STM driver registration, the qdss_clk
is disabled twice in the error path i.e once in amba_probe
and stm_probe. Removed the redundant disable of qdss_clk
from the stm_probe for correct functionality.

Change-Id: I5d2edef0d72384552203f9c922482f5fd9cddc31
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
This commit is contained in:
Saranya Chidura 2017-05-18 10:20:05 +05:30
parent 5404e35069
commit 8a36de60b6

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -866,7 +866,6 @@ err:
coresight_unregister(drvdata->csdev);
return ret;
err1:
pm_runtime_put(&adev->dev);
return -EPERM;
}