File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -689,12 +689,12 @@ const struct dev_pm_ops tegra_pinctrl_pm = {
689
689
.resume = & tegra_pinctrl_resume
690
690
};
691
691
692
- static bool gpio_node_has_range ( const char * compatible )
692
+ static bool tegra_pinctrl_gpio_node_has_range ( struct tegra_pmx * pmx )
693
693
{
694
694
struct device_node * np ;
695
695
bool has_prop = false;
696
696
697
- np = of_find_compatible_node (NULL , NULL , compatible );
697
+ np = of_find_compatible_node (NULL , NULL , pmx -> soc -> gpio_compatible );
698
698
if (!np )
699
699
return has_prop ;
700
700
@@ -794,7 +794,7 @@ int tegra_pinctrl_probe(struct platform_device *pdev,
794
794
795
795
tegra_pinctrl_clear_parked_bits (pmx );
796
796
797
- if (!gpio_node_has_range (pmx -> soc -> gpio_compatible ))
797
+ if (!tegra_pinctrl_gpio_node_has_range (pmx ))
798
798
pinctrl_add_gpio_range (pmx -> pctl , & tegra_pinctrl_gpio_range );
799
799
800
800
platform_set_drvdata (pdev , pmx );
You can’t perform that action at this time.
0 commit comments