summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2004-02-06 14:36:42 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2004-02-06 14:36:42 +1100
commit2767017a466a8c511a3f05994acbe1faeecc74ad (patch)
treec32dcb1ff9829ffa1a167e3b3f05751ce40dd7b3
parent5360e74479478029fa456f4b4dfe916a4ed8e915 (diff)
ppc32: Fix a warning with some usages of udelay
-rw-r--r--include/asm-ppc/delay.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-ppc/delay.h b/include/asm-ppc/delay.h
index dc3715bfeff8..badde6845af2 100644
--- a/include/asm-ppc/delay.h
+++ b/include/asm-ppc/delay.h
@@ -30,8 +30,8 @@ extern void __delay(unsigned int loops);
* (which corresponds to ~3800 bogomips at HZ = 100).
* -- paulus
*/
-#define __MAX_UDELAY (226050910/HZ) /* maximum udelay argument */
-#define __MAX_NDELAY (2147483647/HZ) /* maximum ndelay argument */
+#define __MAX_UDELAY (226050910UL/HZ) /* maximum udelay argument */
+#define __MAX_NDELAY (4294967295UL/HZ) /* maximum ndelay argument */
extern __inline__ void __udelay(unsigned int x)
{