From 8a36de60b60d38d0e16d587a34d4cfffb973f04a Mon Sep 17 00:00:00 2001 From: Saranya Chidura Date: Thu, 18 May 2017 10:20:05 +0530 Subject: [PATCH] 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 --- drivers/hwtracing/coresight/coresight-stm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-stm.c b/drivers/hwtracing/coresight/coresight-stm.c index 11500fccc770..d85bcd8e121a 100644 --- a/drivers/hwtracing/coresight/coresight-stm.c +++ b/drivers/hwtracing/coresight/coresight-stm.c @@ -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; }