of: Fixes for OF probing on little endian systems

Fixes for sdhci-of and ipmi drivers.

Auditing all drivers using of_get_property did not find other
occurrences likely to be used on LE platforms.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
这个提交包含在:
Rob Herring
2010-11-16 14:33:50 -06:00
提交者 Grant Likely
父节点 236cdc7bc7
当前提交 da81c3b982
修改 2 个文件,包含 6 行新增6 行删除

查看文件

@@ -122,7 +122,7 @@ static int __devinit sdhci_of_probe(struct platform_device *ofdev,
struct sdhci_of_data *sdhci_of_data = match->data;
struct sdhci_host *host;
struct sdhci_of_host *of_host;
const u32 *clk;
const __be32 *clk;
int size;
int ret;
@@ -166,7 +166,7 @@ static int __devinit sdhci_of_probe(struct platform_device *ofdev,
clk = of_get_property(np, "clock-frequency", &size);
if (clk && size == sizeof(*clk) && *clk)
of_host->clock = *clk;
of_host->clock = be32_to_cpup(clk);
ret = sdhci_add_host(host);
if (ret)