[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <7373788d1dd01bd99cd22fbfaf94327d42e58935.1401691974.git.viresh.kumar@linaro.org>
Date: Mon, 2 Jun 2014 12:30:33 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: rjw@...ysocki.net
Cc: linaro-kernel@...ts.linaro.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, arvind.chauhan@....com,
inderpal.s@...sung.com, nm@...com, chander.kashyap@...aro.org,
pavel@....cz, len.brown@...el.com, sudeep.holla@....com,
Viresh Kumar <viresh.kumar@...aro.org>
Subject: [PATCH V5 3/8] opp: Enhance debug messages in of_init_opp_table()
Enhance print messages for debugging purposes. Add a dev_err() whenever we fail
to initialize OPP table due to some error in the table present in dts and add a
dev_dbg() for success case.
Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
---
V4->V5: Fix rebase conflict as 2/8 has changed a bit
drivers/base/power/opp.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c
index 28696af..ba20510 100644
--- a/drivers/base/power/opp.c
+++ b/drivers/base/power/opp.c
@@ -655,6 +655,8 @@ int of_init_opp_table(struct device *dev)
}
if (!prop->value) {
+ dev_err(dev, "%s: failed to init OPP: prop->value is NULL\n",
+ __func__);
ret = -ENODATA;
goto out;
}
@@ -681,6 +683,8 @@ int of_init_opp_table(struct device *dev)
nr -= 2;
}
+ dev_dbg(dev, "%s: successfully created OPP table\n", __func__);
+
out:
of_node_put(dev->of_node);
return 0;
--
2.0.0.rc2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists