Skip to contentSkip to conversation

fix pxa2xx_spi.c build

PATCH New Mike Rapoport 1 participant 1 message Sep 14, 2008 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix pxa2xx_spi.c build

This patch fixes build error of pxa2xx-spi driver introduced by commit 7e96445533ac3f4f7964646a202ff3620602fab4:

----

  drivers/spi/pxa2xx_spi.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
drivers/spi/pxa2xx_spi.c +1 -1
index 0e53354..ebae43a 100644
@@ -49,7 +49,7 @@ MODULE_ALIAS("platform:pxa2xx-spi");
 
  #define DMA_INT_MASK		(DCSR_ENDINTR | DCSR_STARTINTR | DCSR_BUSERR)
  #define RESET_DMA_CHANNEL	(DCSR_NODESC | DMA_INT_MASK)
-#define IS_DMA_ALIGNED(x)	(((x) & 0x07) == 0)
+#define IS_DMA_ALIGNED(x)	(((u32)(x) & 0x07) == 0)
  #define MAX_DMA_LEN		8191
 
  /*
Signature · 9 lines
Sincerely yours,
Mike.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/