With this patch the name of the phy that should be used is read from
the device tree. This gives more flexibility to use the driver without
recompiling.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
struct usb_hcd *hcd;
struct ehci_hcd *ehci;
struct resource *res;
+ const char *phy_name;
int irq;
int err;
return -ENOMEM;
}
s5p_ehci = to_s5p_ehci(hcd);
- phy = devm_phy_get(&pdev->dev, "hsic0");
+ phy_name = of_get_property(pdev->dev.of_node, "phy-names", NULL);
+ phy = devm_phy_get(&pdev->dev, phy_name);
if (IS_ERR(phy)) {
/* Fallback to pdata */
if (!pdata) {