Skip to contentSkip to conversation

Fix 64bit warnings in donauboe driver

PATCH New Andi Kleen 1 participant 1 message Mar 17, 2004

Subsystems (2)
lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 Fix 64bit warnings in donauboe driver

Fix a few 64bit warnings in the Donauboe driver. Untested.

-Andi

drivers/net/irda/donauboe.c renamed from drivers/net/irda/donauboe.c-o +3 -4
diff -u linux/drivers/net/irda/donauboe.c-o linux/drivers/net/irda/donauboe.c
@@ -1669,16 +1669,15 @@
 
   /*We need to align the taskfile on a taskfile size boundary */
   {
-    __u32 addr;
+    unsigned long addr;
 
-    addr = (__u32) self->ringbuf;
-    addr &= ~(OBOE_RING_LEN - 1);
+    addr = (unsigned long) self->ringbuf;
+    addr &= ~((unsigned long)OBOE_RING_LEN - 1);
     addr += OBOE_RING_LEN;
     self->ring = (struct OboeRing *) addr;
   }
 
   memset (self->ring, 0, OBOE_RING_LEN);
-  self->io.mem_base = (__u32) self->ring;
 
   ok = 1;
   for (i = 0; i < TX_SLOTS; ++i)