aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xsysace.c
diff options
context:
space:
mode:
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 6e968cd4893c..829161edae53 100644
--- a/drivers/block/xsysace.c
+++ b/drivers/block/xsysace.c
@@ -1225,7 +1225,8 @@ ace_of_probe(struct platform_device *op, const struct of_device_id *match)
1225 bus_width = ACE_BUS_WIDTH_8; 1225 bus_width = ACE_BUS_WIDTH_8;
1226 1226
1227 /* Call the bus-independant setup code */ 1227 /* Call the bus-independant setup code */
1228 return ace_alloc(&op->dev, id ? *id : 0, physaddr, irq, bus_width); 1228 return ace_alloc(&op->dev, id ? be32_to_cpup(id) : 0,
1229 physaddr, irq, bus_width);
1229} 1230}
1230 1231
1231static int __devexit ace_of_remove(struct platform_device *op) 1232static int __devexit ace_of_remove(struct platform_device *op)