diff options
author | Timo Alho <talho@nvidia.com> | 2013-10-29 11:18:13 +0200 |
---|---|---|
committer | Juha Tukkinen <jtukkinen@nvidia.com> | 2013-10-30 01:53:42 -0700 |
commit | b2084d77604b67a7763443a082fb27da28530d9c (patch) | |
tree | 866ee4fe9e2a7c5bd6b525af8fc345ef5ee7f629 /drivers/edp/sysedp_dynamic_capping.c | |
parent | 8ca4f74c89901168bdff5d4173c4ea6fa5e3e7de (diff) |
EDP: remove warning prints of missing GPU clock
GK20A driver does initializes clocks until very late init –
clk_set_rate() is returning error until then. This patch adds graceful
handling of missing gpu clock.
Change-Id: Ia0825985425494675637c20f3d25bc77b24afb91
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/304863
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'drivers/edp/sysedp_dynamic_capping.c')
-rw-r--r-- | drivers/edp/sysedp_dynamic_capping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edp/sysedp_dynamic_capping.c b/drivers/edp/sysedp_dynamic_capping.c index 3e1ddaf913db..0d361c2e1b56 100644 --- a/drivers/edp/sysedp_dynamic_capping.c +++ b/drivers/edp/sysedp_dynamic_capping.c @@ -140,7 +140,7 @@ static void apply_caps(struct tegra_sysedp_devcap *devcap) if (new.gpu != cur_caps.gpu) { r = clk_set_rate(gpu_cap_clk, new.gpu * 1000); - WARN_ON(r); + WARN_ON(r && (r != -ENOENT)); } pr_caps(&cur_caps, &new, devcap->cpu_power); |