net: phy: xgmiitorgmii: Fix non static symbol warning
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Aug 2016 15:06:05 +0000 (15:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2016 00:17:48 +0000 (17:17 -0700)
Fixes the following sparse warning:

drivers/net/phy/xilinx_gmii2rgmii.c:61:5: warning:
 symbol 'xgmiitorgmii_probe' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/xilinx_gmii2rgmii.c

index f38be70943625fe143c3d178b130eea8c9442cba..d15dd3938ba82624fd693b5a6f77301bb6d26bde 100644 (file)
@@ -58,7 +58,7 @@ static int xgmiitorgmii_read_status(struct phy_device *phydev)
        return 0;
 }
 
-int xgmiitorgmii_probe(struct mdio_device *mdiodev)
+static int xgmiitorgmii_probe(struct mdio_device *mdiodev)
 {
        struct device *dev = &mdiodev->dev;
        struct device_node *np = dev->of_node, *phy_node;