diff options
author | Rob Herring <rob.herring@calxeda.com> | 2010-11-16 15:33:52 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-01-14 02:22:44 -0500 |
commit | c289ef41431144a538b5fb5f94fc83c81b3020e2 (patch) | |
tree | e0d0ffe6f72119f51b34c6802072c670ad90e215 /drivers/mmc | |
parent | 52cfd503ad7176d23a5dd7af3981744feb60622f (diff) |
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: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-of-core.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-of-core.c b/drivers/mmc/host/sdhci-of-core.c index fa19d849a920..dd84124f4209 100644 --- a/drivers/mmc/host/sdhci-of-core.c +++ b/drivers/mmc/host/sdhci-of-core.c | |||
@@ -13,6 +13,7 @@ | |||
13 | * your option) any later version. | 13 | * your option) any later version. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/err.h> | ||
16 | #include <linux/module.h> | 17 | #include <linux/module.h> |
17 | #include <linux/init.h> | 18 | #include <linux/init.h> |
18 | #include <linux/io.h> | 19 | #include <linux/io.h> |
@@ -20,8 +21,12 @@ | |||
20 | #include <linux/delay.h> | 21 | #include <linux/delay.h> |
21 | #include <linux/of.h> | 22 | #include <linux/of.h> |
22 | #include <linux/of_platform.h> | 23 | #include <linux/of_platform.h> |
24 | #include <linux/of_address.h> | ||
25 | #include <linux/of_irq.h> | ||
23 | #include <linux/mmc/host.h> | 26 | #include <linux/mmc/host.h> |
27 | #ifdef CONFIG_PPC | ||
24 | #include <asm/machdep.h> | 28 | #include <asm/machdep.h> |
29 | #endif | ||
25 | #include "sdhci-of.h" | 30 | #include "sdhci-of.h" |
26 | #include "sdhci.h" | 31 | #include "sdhci.h" |
27 | 32 | ||
@@ -112,7 +117,11 @@ static bool __devinit sdhci_of_wp_inverted(struct device_node *np) | |||
112 | return true; | 117 | return true; |
113 | 118 | ||
114 | /* Old device trees don't have the wp-inverted property. */ | 119 | /* Old device trees don't have the wp-inverted property. */ |
120 | #ifdef CONFIG_PPC | ||
115 | return machine_is(mpc837x_rdb) || machine_is(mpc837x_mds); | 121 | return machine_is(mpc837x_rdb) || machine_is(mpc837x_mds); |
122 | #else | ||
123 | return false; | ||
124 | #endif | ||
116 | } | 125 | } |
117 | 126 | ||
118 | static int __devinit sdhci_of_probe(struct platform_device *ofdev, | 127 | static int __devinit sdhci_of_probe(struct platform_device *ofdev, |