diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-07 15:28:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 15:16:51 -0400 |
commit | 42416cc81f4990ad8d425b41a0fc8cd985eb5fa5 (patch) | |
tree | ed594af5ba8562d10c58b4d8d9a09850e81d0c85 /drivers/usb/misc/usb3503.c | |
parent | 1f9230713af17657f7ed503a12ddd739d0f48089 (diff) |
usb: misc: Fix swapped properties in usb3503 DT parsing
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 <broonie@linaro.org>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/usb3503.c')
-rw-r--r-- | drivers/usb/misc/usb3503.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index cbb6b7841653..4e3a2d2fc450 100644 --- 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) | |||
215 | } | 215 | } |
216 | } | 216 | } |
217 | 217 | ||
218 | hub->gpio_intn = of_get_named_gpio(np, "connect-gpios", 0); | 218 | hub->gpio_intn = of_get_named_gpio(np, "intn-gpios", 0); |
219 | if (hub->gpio_intn == -EPROBE_DEFER) | 219 | if (hub->gpio_intn == -EPROBE_DEFER) |
220 | return -EPROBE_DEFER; | 220 | return -EPROBE_DEFER; |
221 | hub->gpio_connect = of_get_named_gpio(np, "intn-gpios", 0); | 221 | hub->gpio_connect = of_get_named_gpio(np, "connect-gpios", 0); |
222 | if (hub->gpio_connect == -EPROBE_DEFER) | 222 | if (hub->gpio_connect == -EPROBE_DEFER) |
223 | return -EPROBE_DEFER; | 223 | return -EPROBE_DEFER; |
224 | hub->gpio_reset = of_get_named_gpio(np, "reset-gpios", 0); | 224 | hub->gpio_reset = of_get_named_gpio(np, "reset-gpios", 0); |