On 12-05-20, 15:53, Georgi Djakov wrote:
> From: Sibi Sankar <[email protected]>
> 
> Add support for setting tags on icc paths associated with
> the opp_table.
> 
> Signed-off-by: Sibi Sankar <[email protected]>
> Signed-off-by: Georgi Djakov <[email protected]>
> ---

Applied this delta:

diff --git a/drivers/opp/of.c b/drivers/opp/of.c
index f71dc5eb0eba..a4972c94f428 100644
--- a/drivers/opp/of.c
+++ b/drivers/opp/of.c
@@ -346,7 +346,6 @@ int dev_pm_opp_of_find_icc_paths(struct device *dev,
 
        count = of_count_phandle_with_args(np, "interconnects",
                                           "#interconnect-cells");
-       of_node_put(np);
        if (count < 0) {
                ret = 0;
                goto put_np;
@@ -380,7 +379,7 @@ int dev_pm_opp_of_find_icc_paths(struct device *dev,
                /* Set tag if present */
                if (!of_property_read_u32_index(np, "interconnect-tags",
                                                i, &tag))
-                       icc_set_tag(opp_table->paths[i], tag);
+                       icc_set_tag(paths[i], tag);
        }
 
        if (opp_table) {

-- 
viresh

Reply via email to