phy: usbphyc: remove unused variable index
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 29 Mar 2019 14:42:09 +0000 (15:42 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 21 Apr 2019 08:26:51 +0000 (10:26 +0200)
Remove unused field index in struct stm32_usbphyc_phy.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/phy/phy-stm32-usbphyc.c

index 8e98b4b627bf6cef5046484a21c9b7d169911297..fc53df25ef3af1e9981d3cee72165fa64133827b 100644 (file)
@@ -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",