File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1651,7 +1651,7 @@ static void soctherm_init_hw_throt_cdev(struct platform_device *pdev)
1651
1651
{
1652
1652
struct device * dev = & pdev -> dev ;
1653
1653
struct tegra_soctherm * ts = dev_get_drvdata (dev );
1654
- struct device_node * np_stc , * np_stcc ;
1654
+ struct device_node * np_stc ;
1655
1655
const char * name ;
1656
1656
int i ;
1657
1657
@@ -1668,7 +1668,7 @@ static void soctherm_init_hw_throt_cdev(struct platform_device *pdev)
1668
1668
return ;
1669
1669
}
1670
1670
1671
- for_each_child_of_node (np_stc , np_stcc ) {
1671
+ for_each_child_of_node_scoped (np_stc , np_stcc ) {
1672
1672
struct soctherm_throt_cfg * stc ;
1673
1673
struct thermal_cooling_device * tcd ;
1674
1674
int err ;
@@ -1683,7 +1683,6 @@ static void soctherm_init_hw_throt_cdev(struct platform_device *pdev)
1683
1683
1684
1684
if (stc -> init ) {
1685
1685
dev_err (dev , "throttle-cfg: %s: redefined!\n" , name );
1686
- of_node_put (np_stcc );
1687
1686
break ;
1688
1687
}
1689
1688
You can’t perform that action at this time.
0 commit comments