aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTuomas Tynkkynen <ttynkkynen@nvidia.com>2013-07-25 14:38:07 -0400
committerFelipe Balbi <balbi@ti.com>2013-07-29 06:58:25 -0400
commit3b102e8bc0e49d417c7d376af857537080335dbf (patch)
treec436c222ee45bcb7854fadab7c5dab510ef3bed2
parent7db71a9a6707284f3d9075fff2ad674f6a51c359 (diff)
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: Tuomas Tynkkynen <ttynkkynen@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/phy/phy-tegra-usb.c24
-rw-r--r--include/linux/usb/tegra_usb_phy.h2
2 files changed, 0 insertions, 26 deletions
diff --git a/drivers/usb/phy/phy-tegra-usb.c b/drivers/usb/phy/phy-tegra-usb.c
index 441c306c050f..fb5bc8cea680 100644
--- a/drivers/usb/phy/phy-tegra-usb.c
+++ b/drivers/usb/phy/phy-tegra-usb.c
@@ -968,29 +968,5 @@ static struct platform_driver tegra_usb_phy_driver = {
968}; 968};
969module_platform_driver(tegra_usb_phy_driver); 969module_platform_driver(tegra_usb_phy_driver);
970 970
971static int tegra_usb_phy_match(struct device *dev, void *data)
972{
973 struct tegra_usb_phy *tegra_phy = dev_get_drvdata(dev);
974 struct device_node *dn = data;
975
976 return (tegra_phy->u_phy.dev->of_node == dn) ? 1 : 0;
977}
978
979struct usb_phy *tegra_usb_get_phy(struct device_node *dn)
980{
981 struct device *dev;
982 struct tegra_usb_phy *tegra_phy;
983
984 dev = driver_find_device(&tegra_usb_phy_driver.driver, NULL, dn,
985 tegra_usb_phy_match);
986 if (!dev)
987 return ERR_PTR(-EPROBE_DEFER);
988
989 tegra_phy = dev_get_drvdata(dev);
990
991 return &tegra_phy->u_phy;
992}
993EXPORT_SYMBOL_GPL(tegra_usb_get_phy);
994
995MODULE_DESCRIPTION("Tegra USB PHY driver"); 971MODULE_DESCRIPTION("Tegra USB PHY driver");
996MODULE_LICENSE("GPL v2"); 972MODULE_LICENSE("GPL v2");
diff --git a/include/linux/usb/tegra_usb_phy.h b/include/linux/usb/tegra_usb_phy.h
index 847415313ad2..a095c98184d0 100644
--- a/include/linux/usb/tegra_usb_phy.h
+++ b/include/linux/usb/tegra_usb_phy.h
@@ -60,8 +60,6 @@ struct tegra_usb_phy {
60 int reset_gpio; 60 int reset_gpio;
61}; 61};
62 62
63struct usb_phy *tegra_usb_get_phy(struct device_node *dn);
64
65void tegra_usb_phy_preresume(struct usb_phy *phy); 63void tegra_usb_phy_preresume(struct usb_phy *phy);
66 64
67void tegra_usb_phy_postresume(struct usb_phy *phy); 65void tegra_usb_phy_postresume(struct usb_phy *phy);