projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2718c15
)
MX21: Compilation fix for devices.c
author
Sascha Hauer
<s.hauer@pengutronix.de>
Thu, 13 Aug 2009 08:02:30 +0000
(10:02 +0200)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Fri, 14 Aug 2009 10:41:15 +0000
(12:41 +0200)
The OTG devices are only available on i.MX27, so ifdef
them out for i.MX21.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx2/devices.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-mx2/devices.c
b/arch/arm/mach-mx2/devices.c
index 62810cbe4e30a6311290969143501194bd28ccf3..50199aff0143fee91f859fdc3224d5c38acfdb01 100644
(file)
--- a/
arch/arm/mach-mx2/devices.c
+++ b/
arch/arm/mach-mx2/devices.c
@@
-437,6
+437,7
@@
struct platform_device mxc_sdhc_device1 = {
.resource = mxc_sdhc2_resources,
};
+#ifdef CONFIG_MACH_MX27
static struct resource otg_resources[] = {
{
.start = OTG_BASE_ADDR,
@@
-527,7
+528,7
@@
struct platform_device mxc_usbh2 = {
.resource = mxc_usbh2_resources,
.num_resources = ARRAY_SIZE(mxc_usbh2_resources),
};
-
+#endif
/* GPIO port description */
static struct mxc_gpio_port imx_gpio_ports[] = {