From: Mike Rapoport Date: Tue, 7 Apr 2009 02:00:57 +0000 (-0700) Subject: spi_imx: set spi_master.dma_alignment = 4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=96a6d9aa096aeb758273a8fb6388c279ecef5e7e;p=linux-2.6-omap-h63xx.git spi_imx: set spi_master.dma_alignment = 4 Signed-off-by: Mike Rapoport Cc: Bryan Wu Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index 014af69fc1b..0671aeef579 100644 --- a/drivers/spi/spi_imx.c +++ b/drivers/spi/spi_imx.c @@ -186,6 +186,7 @@ #define QUEUE_STOPPED (1) #define IS_DMA_ALIGNED(x) (((u32)(x) & 0x03) == 0) +#define DMA_ALIGNMENT 4 /*-------------------------------------------------------------------------*/ @@ -1482,6 +1483,7 @@ static int __init spi_imx_probe(struct platform_device *pdev) master->bus_num = pdev->id; master->num_chipselect = platform_info->num_chipselect; + master->dma_alignment = DMA_ALIGNMENT; master->cleanup = cleanup; master->setup = setup; master->transfer = transfer;