]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc8260/ether_scc.c
powerpc: Use generic global_data
[u-boot] / arch / powerpc / cpu / mpc8260 / ether_scc.c
index 432111df4cd6ef152b22b0ab80974ae4551e4af0..3c71219575d1c7d75a2e03a54f3f72108ee97e62 100644 (file)
 #include <command.h>
 #include <config.h>
 
-#ifndef CONFIG_NET_MULTI
-#error "CONFIG_NET_MULTI must be defined."
-#endif
-
 #if (CONFIG_ETHER_INDEX == 1)
 #  define PROFF_ENET            PROFF_SCC1
 #  define CPM_CR_ENET_PAGE      CPM_CR_SCC1_PAGE
@@ -109,7 +105,7 @@ typedef volatile struct CommonBufferDescriptor {
 static RTXBD *rtx;
 
 
-static int sec_send(struct eth_device *dev, volatile void *packet, int length)
+static int sec_send(struct eth_device *dev, void *packet, int length)
 {
     int i;
     int result = 0;
@@ -375,7 +371,7 @@ int mpc82xx_scc_enet_initialize(bd_t *bis)
        dev = (struct eth_device *) malloc(sizeof *dev);
        memset(dev, 0, sizeof *dev);
 
-       sprintf(dev->name, "SCC ETHERNET");
+       sprintf(dev->name, "SCC");
        dev->init   = sec_init;
        dev->halt   = sec_halt;
        dev->send   = sec_send;