pin_ctrl = devm_pinctrl_get(dev);
turnoff_tes = pinctrl_lookup_state
(pin_ctrl, "internal_gpio_pins");
- pinctrl_select_state(pin_ctrl, turnoff_tes);
+ if (IS_ERR_OR_NULL(turnoff_tes))
+ pr_info("Not support gpio low\n");
+ else
+ pinctrl_select_state(pin_ctrl, turnoff_tes);
+
devm_pinctrl_put(pin_ctrl);
pin_ctrl = NULL;
dwmac_meson_disable_analog(dev);
pin_ctrl = devm_pinctrl_get(&pdev->dev);
turnoff_tes = pinctrl_lookup_state
(pin_ctrl, "internal_gpio_pins");
- pinctrl_select_state(pin_ctrl, turnoff_tes);
+ if (IS_ERR_OR_NULL(turnoff_tes))
+ pr_info("Not support gpio low\n");
+ else
+ pinctrl_select_state(pin_ctrl, turnoff_tes);
+
+ //pinctrl_select_state(pin_ctrl, turnoff_tes);
devm_pinctrl_put(pin_ctrl);
pin_ctrl = NULL;
dwmac_meson_disable_analog(&pdev->dev);