]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/smc911x.c
MMC: Remove the MMC bounce buffer
[u-boot] / drivers / net / smc911x.c
index 6cc236ce79d6290911d468b23f040c69a154ead6..b2aed7e14ad200f040ca147f66f4064a4c3adc10 100644 (file)
@@ -35,8 +35,6 @@ u32 pkt_data_pull(struct eth_device *dev, u32 addr) \
 void pkt_data_push(struct eth_device *dev, u32 addr, u32 val) \
        __attribute__ ((weak, alias ("smc911x_reg_write")));
 
-#define mdelay(n)       udelay((n)*1000)
-
 static void smc911x_handle_mac_address(struct eth_device *dev)
 {
        unsigned long addrh, addrl;
@@ -163,8 +161,7 @@ static int smc911x_init(struct eth_device *dev, bd_t * bd)
        return 0;
 }
 
-static int smc911x_send(struct eth_device *dev,
-                       volatile void *packet, int length)
+static int smc911x_send(struct eth_device *dev, void *packet, int length)
 {
        u32 *data = (u32*)packet;
        u32 tmplen;
@@ -237,7 +234,7 @@ static int smc911x_rx(struct eth_device *dev)
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
 /* wrapper for smc911x_eth_phy_read */
-static int smc911x_miiphy_read(char *devname, u8 phy, u8 reg, u16 *val)
+static int smc911x_miiphy_read(const char *devname, u8 phy, u8 reg, u16 *val)
 {
        struct eth_device *dev = eth_get_dev_by_name(devname);
        if (dev)
@@ -245,7 +242,7 @@ static int smc911x_miiphy_read(char *devname, u8 phy, u8 reg, u16 *val)
        return -1;
 }
 /* wrapper for smc911x_eth_phy_write */
-static int smc911x_miiphy_write(char *devname, u8 phy, u8 reg, u16 val)
+static int smc911x_miiphy_write(const char *devname, u8 phy, u8 reg, u16 val)
 {
        struct eth_device *dev = eth_get_dev_by_name(devname);
        if (dev)