diff options
author | Paul Zimmerman <Paul.Zimmerman@synopsys.com> | 2015-01-15 02:45:12 +0000 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-19 12:53:32 -0600 |
commit | da89dba1a0c69ed01e33ebf41327b90993d08492 (patch) | |
tree | 0d3c88236f3672a28b467273ddfbb9ad50df016c /drivers/usb/phy | |
parent | 3c4c733ca9e3f88e3107b6e23b9789bf7769e1f4 (diff) | |
download | linux-stable-da89dba1a0c69ed01e33ebf41327b90993d08492.tar.gz linux-stable-da89dba1a0c69ed01e33ebf41327b90993d08492.tar.bz2 linux-stable-da89dba1a0c69ed01e33ebf41327b90993d08492.zip |
usb: phy: make GPIOs optional for the generic phy
The use of GPIOs should be optional for the generic phy, otherwise
the Altera SOCFPGA platform at least is broken.
Fixes breakage caused by a combination of e9f2cefb0cd "usb: phy:
generic: migrate to gpio_desc" and 135b3c4304d "usb: dwc2: platform:
add generic PHY framework support".
Reviewed-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r-- | drivers/usb/phy/phy-generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index dd05254241fb..9a826ff31951 100644 --- a/drivers/usb/phy/phy-generic.c +++ b/drivers/usb/phy/phy-generic.c @@ -218,10 +218,10 @@ int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop, clk_rate = 0; needs_vcc = of_property_read_bool(node, "vcc-supply"); - nop->gpiod_reset = devm_gpiod_get(dev, "reset-gpios"); + nop->gpiod_reset = devm_gpiod_get_optional(dev, "reset-gpios"); err = PTR_ERR(nop->gpiod_reset); if (!err) { - nop->gpiod_vbus = devm_gpiod_get(dev, + nop->gpiod_vbus = devm_gpiod_get_optional(dev, "vbus-detect-gpio"); err = PTR_ERR(nop->gpiod_vbus); } |