phy: miphy365x: fix sparse warnings
authorFelipe Balbi <balbi@ti.com>
Fri, 8 May 2015 16:30:49 +0000 (11:30 -0500)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 11 May 2015 16:12:26 +0000 (21:42 +0530)
Add missing 'static' modifier so sparse
won't complain anymore.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-miphy365x.c

index 019c2d75344e4f79482b12d9108b2cdd93c2cf2e..ba6993da91fe0624d4c188b86c71020f60ccaf86 100644 (file)
@@ -441,8 +441,8 @@ static int miphy365x_init(struct phy *phy)
        return ret;
 }
 
-int miphy365x_get_addr(struct device *dev, struct miphy365x_phy *miphy_phy,
-                      int index)
+static int miphy365x_get_addr(struct device *dev,
+               struct miphy365x_phy *miphy_phy, int index)
 {
        struct device_node *phynode = miphy_phy->phy->dev.of_node;
        const char *name;