mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
ODROID-G12: Fix gpio-vbus-power bug.
Change-Id: I234cb5c31a9be9a79f3513b3b50deb2c11698e11
This commit is contained in:
@@ -542,7 +542,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) {
|
||||
if (gpio_name && strlen(gpio_name) != 0) {
|
||||
gpio_vbus_power_pin = 1;
|
||||
usb_gd = gpiod_get_index(&pdev->dev,
|
||||
NULL, 0, GPIOD_OUT_LOW);
|
||||
|
||||
Reference in New Issue
Block a user