Skip to content

Commit

Permalink
of/xsysace: Fix OF probing on little-endian systems
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Simek authored and Grant Likely committed Oct 18, 2010
1 parent a9fadee commit bda80da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/block/xsysace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,8 @@ ace_of_probe(struct platform_device *op, const struct of_device_id *match)
bus_width = ACE_BUS_WIDTH_8;

/* Call the bus-independant setup code */
return ace_alloc(&op->dev, id ? *id : 0, physaddr, irq, bus_width);
return ace_alloc(&op->dev, id ? be32_to_cpup(id) : 0,
physaddr, irq, bus_width);
}

static int __devexit ace_of_remove(struct platform_device *op)
Expand Down

0 comments on commit bda80da

Please sign in to comment.