aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pxa2xx.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2013-01-22 05:26:25 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-26 02:21:36 -0500
commit2b9b84f497638ebd60a762cb1c7fa7b4ff7dce4d (patch)
tree18bf8bb0ebad01c61d89e1a5b33342f4e7256e3f /drivers/spi/spi-pxa2xx.c
parent2b49ebda39d66db1ae79a94c2bfec2d44f26ff94 (diff)
spi/pxa2xx: fix warnings when compiling a 64-bit kernel
Fix following warnings seen when compiling 64-bit: drivers/spi/spi-pxa2xx.c: In function ‘map_dma_buffers’: drivers/spi/spi-pxa2xx.c:384:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/spi/spi-pxa2xx.c:384:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/spi/spi-pxa2xx.c: In function ‘pxa2xx_spi_probe’: drivers/spi/spi-pxa2xx.c:1572:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/spi/spi-pxa2xx.c:1572:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/spi/spi-pxa2xx.c:1572:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/spi/spi-pxa2xx.c:1572:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
-rw-r--r--drivers/spi/spi-pxa2xx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 54097ad76356..ef0a78650e96 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -47,7 +47,7 @@ MODULE_ALIAS("platform:pxa2xx-spi");
47 47
48#define DMA_INT_MASK (DCSR_ENDINTR | DCSR_STARTINTR | DCSR_BUSERR) 48#define DMA_INT_MASK (DCSR_ENDINTR | DCSR_STARTINTR | DCSR_BUSERR)
49#define RESET_DMA_CHANNEL (DCSR_NODESC | DMA_INT_MASK) 49#define RESET_DMA_CHANNEL (DCSR_NODESC | DMA_INT_MASK)
50#define IS_DMA_ALIGNED(x) ((((u32)(x)) & 0x07) == 0) 50#define IS_DMA_ALIGNED(x) IS_ALIGNED((unsigned long)(x), DMA_ALIGNMENT)
51#define MAX_DMA_LEN 8191 51#define MAX_DMA_LEN 8191
52#define DMA_ALIGNMENT 8 52#define DMA_ALIGNMENT 8
53 53
@@ -1576,8 +1576,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
1576 master->transfer = transfer; 1576 master->transfer = transfer;
1577 1577
1578 drv_data->ssp_type = ssp->type; 1578 drv_data->ssp_type = ssp->type;
1579 drv_data->null_dma_buf = (u32 *)ALIGN((u32)(drv_data + 1579 drv_data->null_dma_buf = (u32 *)PTR_ALIGN(&drv_data[1], DMA_ALIGNMENT);
1580 sizeof(struct driver_data)), 8);
1581 1580
1582 drv_data->ioaddr = ssp->mmio_base; 1581 drv_data->ioaddr = ssp->mmio_base;
1583 drv_data->ssdr_physical = ssp->phys_base + SSDR; 1582 drv_data->ssdr_physical = ssp->phys_base + SSDR;