Commit f6d2fa7d authored by Sascha Hauer's avatar Sascha Hauer

MX21: Compilation fix for devices.c

The OTG devices are only available on i.MX27, so ifdef
them out for i.MX21.
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 2718c15c
...@@ -437,6 +437,7 @@ struct platform_device mxc_sdhc_device1 = { ...@@ -437,6 +437,7 @@ struct platform_device mxc_sdhc_device1 = {
.resource = mxc_sdhc2_resources, .resource = mxc_sdhc2_resources,
}; };
#ifdef CONFIG_MACH_MX27
static struct resource otg_resources[] = { static struct resource otg_resources[] = {
{ {
.start = OTG_BASE_ADDR, .start = OTG_BASE_ADDR,
...@@ -527,7 +528,7 @@ struct platform_device mxc_usbh2 = { ...@@ -527,7 +528,7 @@ struct platform_device mxc_usbh2 = {
.resource = mxc_usbh2_resources, .resource = mxc_usbh2_resources,
.num_resources = ARRAY_SIZE(mxc_usbh2_resources), .num_resources = ARRAY_SIZE(mxc_usbh2_resources),
}; };
#endif
/* GPIO port description */ /* GPIO port description */
static struct mxc_gpio_port imx_gpio_ports[] = { static struct mxc_gpio_port imx_gpio_ports[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment