mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] of: xsysace: Fix OF probing on little-endian systems
@ 2010-10-18  5:33 Michal Simek
  2010-10-18 15:50 ` Grant Likely
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2010-10-18  5:33 UTC (permalink / raw)
  To: linux-kernel
  Cc: grant.likely, jaxboe, hch, smaclennan, michal.simek,
	john.williams, Michal Simek

Convert big-endian DTB to little-endian if necessary.

Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 drivers/block/xsysace.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c
index 057413b..66911d3 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)
 		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)
-- 
1.6.4.182.g9ebfd


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-18 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-18  5:33 [PATCH] of: xsysace: Fix OF probing on little-endian systems Michal Simek
2010-10-18 15:50 ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®