Skip to content

Commit bda80da

Browse files
michalsimekglikely
authored andcommitted
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>
1 parent a9fadee commit bda80da

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/block/xsysace.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,8 @@ ace_of_probe(struct platform_device *op, const struct of_device_id *match)
12241224
bus_width = ACE_BUS_WIDTH_8;
12251225

12261226
/* 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);
12281229
}
12291230

12301231
static int __devexit ace_of_remove(struct platform_device *op)

0 commit comments

Comments
 (0)