From 488c9cd34b56a696765739c7d31dc06620305d8e Mon Sep 17 00:00:00 2001 From: Anton Tikhomirov Date: Thu, 24 Oct 2013 11:59:41 +0900 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/usb/phy/phy-samsung-usb3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/usb/phy/phy-samsung-usb3.c') 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) sphy->clk = clk; sphy->phy.dev = sphy->dev; sphy->phy.label = "samsung-usb3phy"; + sphy->phy.type = USB_PHY_TYPE_USB3; sphy->phy.init = samsung_usb3phy_init; sphy->phy.shutdown = samsung_usb3phy_shutdown; sphy->drv_data = samsung_usbphy_get_driver_data(pdev); @@ -283,7 +284,7 @@ static int samsung_usb3phy_probe(struct platform_device *pdev) platform_set_drvdata(pdev, sphy); - return usb_add_phy(&sphy->phy, USB_PHY_TYPE_USB3); + return usb_add_phy_dev(&sphy->phy); } static int samsung_usb3phy_remove(struct platform_device *pdev) -- cgit v1.2.1