Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f1519fe authored by Karthik Parsha's avatar Karthik Parsha Committed by Archana Sathyakumar
Browse files

drivers: cpuidle: lpm-levles-of: Remove excessive warn messages



Some targets do not have a SAW device associated with a cluster level. This
is a valid use case. Remove the stack trace print out via WARN. Replace
this with a pr_info.

Change-Id: Ia676c767f2abbd95abf665f4fba81df7738b0764
Signed-off-by: default avatarKarthik Parsha <kparsha@codeaurora.org>
parent 20059604
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-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
@@ -884,7 +884,6 @@ struct lpm_cluster *parse_cluster(struct device_node *node,
			continue;
		key = "qcom,pm-cluster-level";
		if (!of_node_cmp(n->name, key)) {
			WARN_ON(use_psci && c->no_saw_devices);
			if (parse_cluster_level(n, c))
				goto failed_parse_cluster;
			continue;
@@ -894,7 +893,10 @@ struct lpm_cluster *parse_cluster(struct device_node *node,
		if (!of_node_cmp(n->name, key)) {
			struct lpm_cluster *child;

			WARN_ON(use_psci && c->no_saw_devices);
			if (c->no_saw_devices)
				pr_info("%s: SAW device not provided.\n",
					__func__);

			child = parse_cluster(n, c);
			if (!child)
				goto failed_parse_cluster;