diff options
author | Anton Blanchard <anton@samba.org> | 2013-08-06 12:01:36 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 01:33:26 -0400 |
commit | 2083f681e3898394dcf5fb3285bb385e21facb9a (patch) | |
tree | 738978fefec58c5bf2c4d4e7fec5fbcd3e60fdd4 /arch/powerpc/kernel/vio.c | |
parent | d213dd5348532051e19150797aeef36099a4ade9 (diff) |
powerpc: of_parse_dma_window should take a __be32 *dma_window
We pass dma_window to of_parse_dma_window as a void * and then
run through hoops to cast it back to a u32 array. In the process
we lose endian annotation.
Simplify it by just passing a __be32 * down.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/vio.c')
-rw-r--r-- | arch/powerpc/kernel/vio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index 536016d792ba..31875a6002b7 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -1153,7 +1153,7 @@ EXPORT_SYMBOL(vio_h_cop_sync); | |||
1153 | 1153 | ||
1154 | static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) | 1154 | static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) |
1155 | { | 1155 | { |
1156 | const unsigned char *dma_window; | 1156 | const __be32 *dma_window; |
1157 | struct iommu_table *tbl; | 1157 | struct iommu_table *tbl; |
1158 | unsigned long offset, size; | 1158 | unsigned long offset, size; |
1159 | 1159 | ||