Skip to content

Commit 276d6b3

Browse files
digetxgregkh
authored andcommitted
opp: Correct debug message in _opp_add_static_v2()
[ Upstream commit d7b9d9b ] The debug message always prints rate=0 instead of a proper value, fix it. Fixes: 6c591ee ("OPP: Add helpers for reading the binding properties") Tested-by: Peter Geis <pgwipeout@gmail.com> Tested-by: Nicolas Chauvet <kwizart@gmail.com> Tested-by: Matt Merhar <mattmerhar@protonmail.com> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> [ Viresh: Added Fixes tag ] Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent bf7d341 commit 276d6b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/opp/of.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,6 @@ static struct dev_pm_opp *_opp_add_static_v2(struct opp_table *opp_table,
751751
struct device *dev, struct device_node *np)
752752
{
753753
struct dev_pm_opp *new_opp;
754-
u64 rate = 0;
755754
u32 val;
756755
int ret;
757756
bool rate_not_available = false;
@@ -768,7 +767,8 @@ static struct dev_pm_opp *_opp_add_static_v2(struct opp_table *opp_table,
768767

769768
/* Check if the OPP supports hardware's hierarchy of versions or not */
770769
if (!_opp_is_supported(dev, opp_table, np)) {
771-
dev_dbg(dev, "OPP not supported by hardware: %llu\n", rate);
770+
dev_dbg(dev, "OPP not supported by hardware: %lu\n",
771+
new_opp->rate);
772772
goto free_opp;
773773
}
774774

0 commit comments

Comments
 (0)