aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xsysace.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-10-18 01:33:09 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-10-18 11:50:09 -0400
commitbda80da469a93122121de601dd469ce1aaa6effa (patch)
tree415fed71efabd2b2c529ef489785794354cae58d /drivers/block/xsysace.c
parenta9fadeefdc869ff792591f57a9e33d8790d63292 (diff)
of/xsysace: Fix OF probing on little-endian systems
Convert big-endian DTB to little-endian if necessary. Signed-off-by: Michal Simek <monstr@monstr.eu> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/block/xsysace.c')
-rw-r--r--drivers/block/xsysace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c
index 057413bb16e2..66911d360ad6 100644
--- a/drivers/block/xsysace.c
+++ b/drivers/block/xsysace.c
@@ -1224,7 +1224,8 @@ ace_of_probe(struct platform_device *op, const struct of_device_id *match)
1224 bus_width = ACE_BUS_WIDTH_8; 1224 bus_width = ACE_BUS_WIDTH_8;
1225 1225
1226 /* Call the bus-independant setup code */ 1226 /* Call the bus-independant setup code */
1227 return ace_alloc(&op->dev, id ? *id : 0, physaddr, irq, bus_width); 1227 return ace_alloc(&op->dev, id ? be32_to_cpup(id) : 0,
1228 physaddr, irq, bus_width);
1228} 1229}
1229 1230
1230static int __devexit ace_of_remove(struct platform_device *op) 1231static int __devexit ace_of_remove(struct platform_device *op)