aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/prom.h
diff options
context:
space:
mode:
authorGravatar Anton Blanchard <anton@samba.org> 2013-08-07 02:01:36 +1000
committerGravatar Benjamin Herrenschmidt <benh@kernel.crashing.org> 2013-08-14 15:33:26 +1000
commit2083f681e3898394dcf5fb3285bb385e21facb9a (patch)
tree738978fefec58c5bf2c4d4e7fec5fbcd3e60fdd4 /arch/powerpc/include/asm/prom.h
parentpowerpc: Fix some endian issues in xics code (diff)
downloadlinux-2083f681e3898394dcf5fb3285bb385e21facb9a.tar.gz
linux-2083f681e3898394dcf5fb3285bb385e21facb9a.tar.bz2
linux-2083f681e3898394dcf5fb3285bb385e21facb9a.zip
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/include/asm/prom.h')
-rw-r--r--arch/powerpc/include/asm/prom.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h
index 3bac73ecc349..e6ec2cffba16 100644
--- a/arch/powerpc/include/asm/prom.h
+++ b/arch/powerpc/include/asm/prom.h
@@ -38,8 +38,9 @@ extern unsigned long pci_address_to_pio(phys_addr_t address);
/* Parse the ibm,dma-window property of an OF node into the busno, phys and
* size parameters.
*/
-void of_parse_dma_window(struct device_node *dn, const void *dma_window_prop,
- unsigned long *busno, unsigned long *phys, unsigned long *size);
+void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window,
+ unsigned long *busno, unsigned long *phys,
+ unsigned long *size);
extern void kdump_move_device_tree(void);