Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350755
b: refs/heads/master
c: 2b9b84f
h: refs/heads/master
i:
  350753: 55eb76e
  350751: 1d9fb30
v: v3
  • Loading branch information
Mika Westerberg authored and Mark Brown committed Jan 26, 2013
1 parent dfa431f commit 5fc2476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b49ebda39d66db1ae79a94c2bfec2d44f26ff94
refs/heads/master: 2b9b84f497638ebd60a762cb1c7fa7b4ff7dce4d
5 changes: 2 additions & 3 deletions trunk/drivers/spi/spi-pxa2xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,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) ((((u32)(x)) & 0x07) == 0)
#define IS_DMA_ALIGNED(x) IS_ALIGNED((unsigned long)(x), DMA_ALIGNMENT)
#define MAX_DMA_LEN 8191
#define DMA_ALIGNMENT 8

Expand Down Expand Up @@ -1576,8 +1576,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
master->transfer = transfer;

drv_data->ssp_type = ssp->type;
drv_data->null_dma_buf = (u32 *)ALIGN((u32)(drv_data +
sizeof(struct driver_data)), 8);
drv_data->null_dma_buf = (u32 *)PTR_ALIGN(&drv_data[1], DMA_ALIGNMENT);

drv_data->ioaddr = ssp->mmio_base;
drv_data->ssdr_physical = ssp->phys_base + SSDR;
Expand Down

0 comments on commit 5fc2476

Please sign in to comment.