diff options
author | Anton Tikhomirov <av.tikhomirov@samsung.com> | 2013-10-23 22:59:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 19:46:48 -0400 |
commit | 488c9cd34b56a696765739c7d31dc06620305d8e (patch) | |
tree | c643f269a9905b7c90aea142c9e37bfd1d09c815 /drivers/usb | |
parent | f74b75e7f920c700636cccca669c7d16d12e9202 (diff) |
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')
-rw-r--r-- | drivers/usb/phy/phy-samsung-usb2.c | 3 | ||||
-rw-r--r-- | drivers/usb/phy/phy-samsung-usb3.c | 3 |
2 files changed, 4 insertions, 2 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) | |||
411 | sphy->drv_data = drv_data; | 411 | sphy->drv_data = drv_data; |
412 | sphy->phy.dev = sphy->dev; | 412 | sphy->phy.dev = sphy->dev; |
413 | sphy->phy.label = "samsung-usb2phy"; | 413 | sphy->phy.label = "samsung-usb2phy"; |
414 | sphy->phy.type = USB_PHY_TYPE_USB2; | ||
414 | sphy->phy.init = samsung_usb2phy_init; | 415 | sphy->phy.init = samsung_usb2phy_init; |
415 | sphy->phy.shutdown = samsung_usb2phy_shutdown; | 416 | sphy->phy.shutdown = samsung_usb2phy_shutdown; |
416 | 417 | ||
@@ -426,7 +427,7 @@ static int samsung_usb2phy_probe(struct platform_device *pdev) | |||
426 | 427 | ||
427 | platform_set_drvdata(pdev, sphy); | 428 | platform_set_drvdata(pdev, sphy); |
428 | 429 | ||
429 | return usb_add_phy(&sphy->phy, USB_PHY_TYPE_USB2); | 430 | return usb_add_phy_dev(&sphy->phy); |
430 | } | 431 | } |
431 | 432 | ||
432 | static int samsung_usb2phy_remove(struct platform_device *pdev) | 433 | static int samsung_usb2phy_remove(struct platform_device *pdev) |
diff --git a/drivers/usb/phy/phy-samsung-usb3.c b/drivers/usb/phy/phy-samsung-usb3.c index c6eb22213de6..cc0819248acf 100644 --- a/drivers/usb/phy/phy-samsung-usb3.c +++ b/drivers/usb/phy/phy-samsung-usb3.c | |||
@@ -271,6 +271,7 @@ static int samsung_usb3phy_probe(struct platform_device *pdev) | |||
271 | sphy->clk = clk; | 271 | sphy->clk = clk; |
272 | sphy->phy.dev = sphy->dev; | 272 | sphy->phy.dev = sphy->dev; |
273 | sphy->phy.label = "samsung-usb3phy"; | 273 | sphy->phy.label = "samsung-usb3phy"; |
274 | sphy->phy.type = USB_PHY_TYPE_USB3; | ||
274 | sphy->phy.init = samsung_usb3phy_init; | 275 | sphy->phy.init = samsung_usb3phy_init; |
275 | sphy->phy.shutdown = samsung_usb3phy_shutdown; | 276 | sphy->phy.shutdown = samsung_usb3phy_shutdown; |
276 | sphy->drv_data = samsung_usbphy_get_driver_data(pdev); | 277 | sphy->drv_data = samsung_usbphy_get_driver_data(pdev); |
@@ -283,7 +284,7 @@ static int samsung_usb3phy_probe(struct platform_device *pdev) | |||
283 | 284 | ||
284 | platform_set_drvdata(pdev, sphy); | 285 | platform_set_drvdata(pdev, sphy); |
285 | 286 | ||
286 | return usb_add_phy(&sphy->phy, USB_PHY_TYPE_USB3); | 287 | return usb_add_phy_dev(&sphy->phy); |
287 | } | 288 | } |
288 | 289 | ||
289 | static int samsung_usb3phy_remove(struct platform_device *pdev) | 290 | static int samsung_usb3phy_remove(struct platform_device *pdev) |