diff options
author | 2014-06-07 23:24:07 -0700 | |
---|---|---|
committer | 2014-06-07 23:24:07 -0700 | |
commit | a292241cccb7e20e8b997a9a44177e7c98141859 (patch) | |
tree | a0b0bb95e7dce3233a2d8b203f9e326cdec7a00e /drivers/usb/phy/phy.c | |
parent | Input: synaptics - fix resolution for manually provided min/max (diff) | |
parent | Input: atmel_mxt_ts - fix invalid return from mxt_get_bootloader_version (diff) | |
download | linux-dev-a292241cccb7e20e8b997a9a44177e7c98141859.tar.xz linux-dev-a292241cccb7e20e8b997a9a44177e7c98141859.zip |
Merge branch 'next' into for-linus
Prepare input updates for 3.16.
Diffstat (limited to 'drivers/usb/phy/phy.c')
-rw-r--r-- | drivers/usb/phy/phy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c index 8afa813d690b..36b6bce33b20 100644 --- a/drivers/usb/phy/phy.c +++ b/drivers/usb/phy/phy.c @@ -132,6 +132,9 @@ struct usb_phy *usb_get_phy(enum usb_phy_type type) if (IS_ERR(phy) || !try_module_get(phy->dev->driver->owner)) { pr_debug("PHY: unable to find transceiver of type %s\n", usb_phy_type_string(type)); + if (!IS_ERR(phy)) + phy = ERR_PTR(-ENODEV); + goto err0; } |