msm: scm-pas: Don't ignore bw requests when dfab clock exists

The check should be checking for not having a dfab clock. Fix it
so bandwidth requests work.

Change-Id: Ibfeb6fe581908e033664e05fa848b81632ccb672
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
Stephen Boyd
2012-01-11 19:24:58 -08:00
parent 58fcde4306
commit 2f0a847b15

View File

@@ -1,4 +1,4 @@
/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. /* Copyright (c) 2010-2012, Code Aurora Forum. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License version 2 and
@@ -94,7 +94,7 @@ static int scm_pas_enable_bw(void)
{ {
int ret = 0; int ret = 0;
if (!scm_perf_client || scm_bus_clk) if (!scm_perf_client || !scm_bus_clk)
return -EINVAL; return -EINVAL;
mutex_lock(&scm_pas_bw_mutex); mutex_lock(&scm_pas_bw_mutex);