diff options
Diffstat (limited to 'drivers/ks8695eth.c')
-rw-r--r-- | drivers/ks8695eth.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/ks8695eth.c b/drivers/ks8695eth.c index a4b03ae..a0f5be8 100644 --- a/drivers/ks8695eth.c +++ b/drivers/ks8695eth.c @@ -18,8 +18,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifdef CONFIG_DRIVER_KS8695ETH - /****************************************************************************/ #include <common.h> @@ -28,6 +26,7 @@ #include <asm/io.h> #include <asm/arch/platform.h> +#ifdef CONFIG_DRIVER_KS8695ETH /****************************************************************************/ /* @@ -216,10 +215,10 @@ int eth_send(volatile void *packet, int len) packet, len); dp = &ks8695_tx[next]; - memcpy((void *) dp->addr, packet, len); + memcpy((void *) dp->addr, (void *) packet, len); if (len < 64) { - memset(dp->addr+len, 0, 64-len); + memset((void *) (dp->addr + len), 0, 64-len); len = 64; } |