summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2019-10-09 09:23:09 +0200
committerKishon Vijay Abraham I <kishon@ti.com>2019-10-23 09:50:26 +0200
commitf466de0208e3ef6e9d28ad0b2d6a30cdd9d5052f (patch)
treea228369f6ec42620fd73f2627af95dc1191665cb /drivers
parentphy: xgene: make array serdes_reg static const, makes object smaller (diff)
downloadlinux-f466de0208e3ef6e9d28ad0b2d6a30cdd9d5052f.tar.xz
linux-f466de0208e3ef6e9d28ad0b2d6a30cdd9d5052f.zip
phy: tegra: xusb: remove unused variable
The local variable @priv is set but not used, can be removed Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/phy/tegra/xusb-tegra210.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/phy/tegra/xusb-tegra210.c b/drivers/phy/tegra/xusb-tegra210.c
index 0c0df6897a3b..bc71c897298a 100644
--- a/drivers/phy/tegra/xusb-tegra210.c
+++ b/drivers/phy/tegra/xusb-tegra210.c
@@ -1225,13 +1225,10 @@ static int tegra210_hsic_phy_power_on(struct phy *phy)
struct tegra_xusb_hsic_lane *hsic = to_hsic_lane(lane);
struct tegra_xusb_hsic_pad *pad = to_hsic_pad(lane->pad);
struct tegra_xusb_padctl *padctl = lane->pad->padctl;
- struct tegra210_xusb_padctl *priv;
unsigned int index = lane->index;
u32 value;
int err;
- priv = to_tegra210_xusb_padctl(padctl);
-
err = regulator_enable(pad->supply);
if (err)
return err;