浏览代码

Merge branch 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm into pm-opp

Merge an OPP fix for v4.18 from Viresh Kumar.

* 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm:
  PM / OPP: silence an uninitialized variable warning
Rafael J. Wysocki 7 年之前
父节点
当前提交
e008690e4e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/opp/of.c

+ 1 - 1
drivers/opp/of.c

@@ -287,7 +287,7 @@ static int _opp_add_static_v2(struct opp_table *opp_table, struct device *dev,
 			      struct device_node *np)
 			      struct device_node *np)
 {
 {
 	struct dev_pm_opp *new_opp;
 	struct dev_pm_opp *new_opp;
-	u64 rate;
+	u64 rate = 0;
 	u32 val;
 	u32 val;
 	int ret;
 	int ret;
 	bool rate_not_available = false;
 	bool rate_not_available = false;