summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-08-26 01:36:03 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-08-26 01:36:03 +0200
commit7bc5ee0785a528962bffc586f7d447d79e2642b4 (patch)
treea17cf90defc935ac8d773f06383950c1ff96ea52 /drivers
parent61dada83f34f83f32163febfd9bfd93bf9b0c732 (diff)
Prepare U-Boot for gcc-4.x
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ns8382x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ns8382x.c b/drivers/ns8382x.c
index 281940b222..be99c3b4d7 100644
--- a/drivers/ns8382x.c
+++ b/drivers/ns8382x.c
@@ -745,7 +745,7 @@ static int
ns8382x_send(struct eth_device *dev, volatile void *packet, int length)
{
u32 i, status = 0;
- u32 tx_stat = 0;
+ vu_long tx_stat = 0;
/* Stop the transmitter */
OUTL(dev, TxOff, ChipCmd);
@@ -771,7 +771,7 @@ ns8382x_send(struct eth_device *dev, volatile void *packet, int length)
/* restart the transmitter */
OUTL(dev, TxOn, ChipCmd);
- for (i = 0; ((vu_long)tx_stat = le32_to_cpu(txd.cmdsts)) & DescOwn; i++) {
+ for (i = 0; (tx_stat = le32_to_cpu(txd.cmdsts)) & DescOwn; i++) {
if (i >= TOUT_LOOP) {
printf ("%s: tx error buffer not ready: txd.cmdsts %#X\n",
dev->name, tx_stat);