summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2019-03-29 15:42:09 +0100
committerMarek Vasut <marex@denx.de>2019-04-21 10:26:51 +0200
commit6841d83cec269d5b926f3bce5d60f840d03ee507 (patch)
treec5991e62bbc727ad1d04226b025554804dddd43d
parenta40297d74105b3949dc72375e0fdc54fe0b170ad (diff)
phy: usbphyc: remove unused variable index
Remove unused field index in struct stm32_usbphyc_phy. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
-rw-r--r--drivers/phy/phy-stm32-usbphyc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c
index 8e98b4b627..fc53df25ef 100644
--- a/drivers/phy/phy-stm32-usbphyc.c
+++ b/drivers/phy/phy-stm32-usbphyc.c
@@ -55,7 +55,6 @@ struct stm32_usbphyc {
struct udevice *vdd;
struct udevice *vdda1v1;
struct udevice *vdda1v8;
- int index;
bool init;
bool powered;
} phys[MAX_PHYS];
@@ -359,7 +358,6 @@ static int stm32_usbphyc_probe(struct udevice *dev)
for (i = 0; i < MAX_PHYS; i++) {
struct stm32_usbphyc_phy *usbphyc_phy = usbphyc->phys + i;
- usbphyc_phy->index = i;
usbphyc_phy->init = false;
usbphyc_phy->powered = false;
ret = stm32_usbphyc_get_regulator(dev, node, "phy-supply",