提交 c289ef41 编写于 作者: R Rob Herring 提交者: Grant Likely

mmc: sdhci-of: fix build on non-powerpc platforms

Explicitly include err.h, of_address.h and of_irq.h.
Make use of machine_is() conditional on PPC.
Signed-off-by: NRob Herring <rob.herring@calxeda.com>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 52cfd503
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
* your option) any later version. * your option) any later version.
*/ */
#include <linux/err.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/io.h> #include <linux/io.h>
...@@ -20,8 +21,12 @@ ...@@ -20,8 +21,12 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/mmc/host.h> #include <linux/mmc/host.h>
#ifdef CONFIG_PPC
#include <asm/machdep.h> #include <asm/machdep.h>
#endif
#include "sdhci-of.h" #include "sdhci-of.h"
#include "sdhci.h" #include "sdhci.h"
...@@ -112,7 +117,11 @@ static bool __devinit sdhci_of_wp_inverted(struct device_node *np) ...@@ -112,7 +117,11 @@ static bool __devinit sdhci_of_wp_inverted(struct device_node *np)
return true; return true;
/* Old device trees don't have the wp-inverted property. */ /* Old device trees don't have the wp-inverted property. */
#ifdef CONFIG_PPC
return machine_is(mpc837x_rdb) || machine_is(mpc837x_mds); return machine_is(mpc837x_rdb) || machine_is(mpc837x_mds);
#else
return false;
#endif
} }
static int __devinit sdhci_of_probe(struct platform_device *ofdev, static int __devinit sdhci_of_probe(struct platform_device *ofdev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册