diff options
author | Anton Tikhomirov | 2013-10-24 04:59:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-10-30 00:46:48 +0100 |
commit | 488c9cd34b56a696765739c7d31dc06620305d8e (patch) | |
tree | c643f269a9905b7c90aea142c9e37bfd1d09c815 /drivers/usb/phy/phy-samsung-usb2.c | |
parent | usb: wusbcore: change WA_SEGS_MAX to a legal value (diff) | |
download | kernel-qcow2-linux-488c9cd34b56a696765739c7d31dc06620305d8e.tar.gz kernel-qcow2-linux-488c9cd34b56a696765739c7d31dc06620305d8e.tar.xz kernel-qcow2-linux-488c9cd34b56a696765739c7d31dc06620305d8e.zip |
USB: phy: samsung: Support multiple PHYs of same type
This patch removes limitation when only one PHY of specific type
could be used.
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/phy/phy-samsung-usb2.c')
-rw-r--r-- | drivers/usb/phy/phy-samsung-usb2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-samsung-usb2.c b/drivers/usb/phy/phy-samsung-usb2.c index ff70e4b19b97..b3ba86627b72 100644 --- a/drivers/usb/phy/phy-samsung-usb2.c +++ b/drivers/usb/phy/phy-samsung-usb2.c @@ -411,6 +411,7 @@ static int samsung_usb2phy_probe(struct platform_device *pdev) sphy->drv_data = drv_data; sphy->phy.dev = sphy->dev; sphy->phy.label = "samsung-usb2phy"; + sphy->phy.type = USB_PHY_TYPE_USB2; sphy->phy.init = samsung_usb2phy_init; sphy->phy.shutdown = samsung_usb2phy_shutdown; @@ -426,7 +427,7 @@ static int samsung_usb2phy_probe(struct platform_device *pdev) platform_set_drvdata(pdev, sphy); - return usb_add_phy(&sphy->phy, USB_PHY_TYPE_USB2); + return usb_add_phy_dev(&sphy->phy); } static int samsung_usb2phy_remove(struct platform_device *pdev) |