From ecd0d93467b375396184e959f5b7592ee6df48c2 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 25 Jun 2021 17:27:55 +0900 Subject: [PATCH] Revert "ODROID-G12: Fix gpio-vbus-power bug." This reverts commit 1b9dab97c0411ccd22ea9923547e8f3ec148b997. Change-Id: I2b325897b9ba93a49cb3ba73798cb9ef48f6052d --- drivers/amlogic/usb/phy/phy-aml-new-usb3-v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/usb/phy/phy-aml-new-usb3-v2.c b/drivers/amlogic/usb/phy/phy-aml-new-usb3-v2.c index a95317315c54..7aaaf8bf68b0 100644 --- a/drivers/amlogic/usb/phy/phy-aml-new-usb3-v2.c +++ b/drivers/amlogic/usb/phy/phy-aml-new-usb3-v2.c @@ -514,7 +514,7 @@ static int amlogic_new_usb3_v2_probe(struct platform_device *pdev) #endif gpio_name = of_get_property(dev->of_node, "gpio-vbus-power", NULL); - if (gpio_name && strlen(gpio_name) != 0) { + if (gpio_name) { gpio_vbus_power_pin = 1; usb_gd = gpiod_get_index(&pdev->dev, NULL, 0, GPIOD_OUT_LOW);