From 6836e8df228a9a7d5e71ef9e5fd60e7d2ebfc77d Mon Sep 17 00:00:00 2001 From: Mark Kuo Date: Wed, 17 Aug 2016 09:53:11 +0800 Subject: padctl: t186: remove unnecessary function A function not used at all is mistakenly merged in http://git-master/r/1170316. Fix that by removing it. Bug 200088648 Change-Id: Ie2e6ef933c17623efedbdc58896e2d87ca30734e Signed-off-by: Mark Kuo Reviewed-on: http://git-master/r/1203408 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/pinctrl/pinctrl-tegra186-padctl.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'drivers/pinctrl') diff --git a/drivers/pinctrl/pinctrl-tegra186-padctl.c b/drivers/pinctrl/pinctrl-tegra186-padctl.c index d8c6fe16e..b680ed095 100644 --- a/drivers/pinctrl/pinctrl-tegra186-padctl.c +++ b/drivers/pinctrl/pinctrl-tegra186-padctl.c @@ -3388,27 +3388,6 @@ bool tegra_phy_xusb_utmi_pad_secondary_charger_detect(struct phy *phy) } EXPORT_SYMBOL_GPL(tegra_phy_xusb_utmi_pad_secondary_charger_detect); -int tegra_phy_xusb_phy_to_port(struct phy *phy) -{ - struct tegra_padctl *padctl; - int port = -EINVAL; - - if (!phy || IS_ERR(phy)) - return port; - - padctl = phy_get_drvdata(phy); - - if (is_utmi_phy(phy)) - port = utmi_phy_to_port(phy); - else if (is_hsic_phy(phy)) - port = hsic_phy_to_port(phy); - else if (is_usb3_phy(phy)) - port = usb3_phy_to_port(phy); - - return port; -} -EXPORT_SYMBOL_GPL(tegra_phy_xusb_phy_to_port); - MODULE_AUTHOR("JC Kuo "); MODULE_DESCRIPTION("Tegra 186 XUSB PADCTL driver"); MODULE_LICENSE("GPL v2"); -- cgit v1.2.2