projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f92307
)
usb: misc: Fix swapped properties in usb3503 DT parsing
author
Mark Brown
<
[email protected]
>
Wed, 7 Aug 2013 19:28:24 +0000
(20:28 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 12 Aug 2013 19:16:51 +0000
(12:16 -0700)
The intn and connect GPIO properties are swapped in the code which will
cause failures at runtime if these are connected, fix the code.
There are currently no in-tree users of this device to check or update.
Signed-off-by: Mark Brown <
[email protected]
>
Acked-by: Olof Johansson <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/misc/usb3503.c
patch
|
blob
|
history
diff --git
a/drivers/usb/misc/usb3503.c
b/drivers/usb/misc/usb3503.c
index cbb6b78416537d3ab4ed67f48f092833abe281c3..4e3a2d2fc4500f547cd1d31cfccbc1c9214ce87b 100644
(file)
--- a/
drivers/usb/misc/usb3503.c
+++ b/
drivers/usb/misc/usb3503.c
@@
-215,10
+215,10
@@
static int usb3503_probe(struct i2c_client *i2c, const struct i2c_device_id *id)
}
}
- hub->gpio_intn = of_get_named_gpio(np, "
connect
-gpios", 0);
+ hub->gpio_intn = of_get_named_gpio(np, "
intn
-gpios", 0);
if (hub->gpio_intn == -EPROBE_DEFER)
return -EPROBE_DEFER;
- hub->gpio_connect = of_get_named_gpio(np, "
intn
-gpios", 0);
+ hub->gpio_connect = of_get_named_gpio(np, "
connect
-gpios", 0);
if (hub->gpio_connect == -EPROBE_DEFER)
return -EPROBE_DEFER;
hub->gpio_reset = of_get_named_gpio(np, "reset-gpios", 0);