]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
net: fec_mxc: make local functions static
authorJeroen Hofstee <jeroen@myspectrum.nl>
Wed, 8 Oct 2014 20:57:40 +0000 (22:57 +0200)
committerTom Rini <trini@ti.com>
Sat, 25 Oct 2014 11:02:02 +0000 (07:02 -0400)
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
drivers/net/fec_mxc.c

index 549d6486136204ed644a2c2ecba101d25db303ef..b57247032fa85aaa65ec47c9fcf7668a4cd567df 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <net.h>
+#include <netdev.h>
 #include <miiphy.h>
 #include "fec_mxc.h"
 
@@ -179,13 +180,14 @@ static int fec_mdio_write(struct ethernet_regs *eth, uint8_t phyAddr,
        return 0;
 }
 
-int fec_phy_read(struct mii_dev *bus, int phyAddr, int dev_addr, int regAddr)
+static int fec_phy_read(struct mii_dev *bus, int phyAddr, int dev_addr,
+                       int regAddr)
 {
        return fec_mdio_read(bus->priv, phyAddr, regAddr);
 }
 
-int fec_phy_write(struct mii_dev *bus, int phyAddr, int dev_addr, int regAddr,
-               u16 data)
+static int fec_phy_write(struct mii_dev *bus, int phyAddr, int dev_addr,
+                        int regAddr, u16 data)
 {
        return fec_mdio_write(bus->priv, phyAddr, regAddr, data);
 }