diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2013-11-15 14:38:50 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-11-25 11:25:59 -0500 |
commit | dc52c57411ccad276af6b4f35a670773110b35c5 (patch) | |
tree | c9ec2390576a5633a3994173b8ad527017e6eb04 /drivers/usb/phy | |
parent | fd3923a9904f34d5472134358d87f454a288fc45 (diff) |
usb: phy-generic: fix nop xceiv probe
Commit bd27fa44e13830d2baa278d5702e766380659cb3 (usb: phy: generic:
Don't use regulator framework for RESET line) introduced regression: All
users of usb_nop_xceiv_register() will fail because there is no platform
data and the default reset GPIO is 0 which is a valid GPIO. Fix that.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r-- | drivers/usb/phy/phy-generic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index 0c3b24124063..8ee37f403553 100644 --- a/drivers/usb/phy/phy-generic.c +++ b/drivers/usb/phy/phy-generic.c | |||
@@ -180,6 +180,8 @@ int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_gen_xceiv *nop, | |||
180 | clk_rate = pdata->clk_rate; | 180 | clk_rate = pdata->clk_rate; |
181 | needs_vcc = pdata->needs_vcc; | 181 | needs_vcc = pdata->needs_vcc; |
182 | nop->gpio_reset = pdata->gpio_reset; | 182 | nop->gpio_reset = pdata->gpio_reset; |
183 | } else { | ||
184 | nop->gpio_reset = -1; | ||
183 | } | 185 | } |
184 | 186 | ||
185 | nop->phy.otg = devm_kzalloc(dev, sizeof(*nop->phy.otg), | 187 | nop->phy.otg = devm_kzalloc(dev, sizeof(*nop->phy.otg), |