Commit 3b102e8b authored by Tuomas Tynkkynen's avatar Tuomas Tynkkynen Committed by Felipe Balbi

usb: phy: tegra: Remove custom PHY locating APIs

The Tegra EHCI driver is no longer using these custom functions, so they
can be removed.
Signed-off-by: default avatarTuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 7db71a9a
...@@ -968,29 +968,5 @@ static struct platform_driver tegra_usb_phy_driver = { ...@@ -968,29 +968,5 @@ static struct platform_driver tegra_usb_phy_driver = {
}; };
module_platform_driver(tegra_usb_phy_driver); module_platform_driver(tegra_usb_phy_driver);
static int tegra_usb_phy_match(struct device *dev, void *data)
{
struct tegra_usb_phy *tegra_phy = dev_get_drvdata(dev);
struct device_node *dn = data;
return (tegra_phy->u_phy.dev->of_node == dn) ? 1 : 0;
}
struct usb_phy *tegra_usb_get_phy(struct device_node *dn)
{
struct device *dev;
struct tegra_usb_phy *tegra_phy;
dev = driver_find_device(&tegra_usb_phy_driver.driver, NULL, dn,
tegra_usb_phy_match);
if (!dev)
return ERR_PTR(-EPROBE_DEFER);
tegra_phy = dev_get_drvdata(dev);
return &tegra_phy->u_phy;
}
EXPORT_SYMBOL_GPL(tegra_usb_get_phy);
MODULE_DESCRIPTION("Tegra USB PHY driver"); MODULE_DESCRIPTION("Tegra USB PHY driver");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
...@@ -60,8 +60,6 @@ struct tegra_usb_phy { ...@@ -60,8 +60,6 @@ struct tegra_usb_phy {
int reset_gpio; int reset_gpio;
}; };
struct usb_phy *tegra_usb_get_phy(struct device_node *dn);
void tegra_usb_phy_preresume(struct usb_phy *phy); void tegra_usb_phy_preresume(struct usb_phy *phy);
void tegra_usb_phy_postresume(struct usb_phy *phy); void tegra_usb_phy_postresume(struct usb_phy *phy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment