diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-05 06:36:15 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-02 12:24:26 -0500 |
commit | 8eed6ca51e50fade6887e8bdb1ff6a44116b42b5 (patch) | |
tree | 8d7cbcb8427f551fc59c7f32071b3b645525996d /drivers | |
parent | a7ec6ac8b2c6dce6fc670a2a855deb6eee340e04 (diff) | |
download | u-boot-imx-8eed6ca51e50fade6887e8bdb1ff6a44116b42b5.zip u-boot-imx-8eed6ca51e50fade6887e8bdb1ff6a44116b42b5.tar.gz u-boot-imx-8eed6ca51e50fade6887e8bdb1ff6a44116b42b5.tar.bz2 |
Blackfin: bfin_mac: use common debug()
Rather then defining our own DEBUGF(), just use the common debug().
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bfin_mac.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index 2cdb2f8..d2328a9 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c @@ -33,14 +33,6 @@ #include <post.h> #endif -#undef DEBUG_ETHERNET - -#ifdef DEBUG_ETHERNET -#define DEBUGF(fmt, args...) printf(fmt, ##args) -#else -#define DEBUGF(fmt, args...) -#endif - #define RXBUF_BASE_ADDR 0xFF900000 #define TXBUF_BASE_ADDR 0xFF800000 #define TX_BUF_CNT 1 @@ -175,7 +167,7 @@ static int bfin_EMAC_send(struct eth_device *dev, volatile void *packet, else txIdx++; out: - DEBUGF("BFIN EMAC send: length = %d\n", length); + debug("BFIN EMAC send: length = %d\n", length); return result; } @@ -320,7 +312,7 @@ static int bfin_EMAC_init(struct eth_device *dev, bd_t *bd) u32 opmode; int dat; int i; - DEBUGF("Eth_init: ......\n"); + debug("Eth_init: ......\n"); txIdx = 0; rxIdx = 0; @@ -383,7 +375,7 @@ static int bfin_EMAC_init(struct eth_device *dev, bd_t *bd) static void bfin_EMAC_halt(struct eth_device *dev) { - DEBUGF("Eth_halt: ......\n"); + debug("Eth_halt: ......\n"); /* Turn off the EMAC */ *pEMAC_OPMODE = 0x00000000; /* Turn off the EMAC RX DMA */ |