Skip to content

Commit

Permalink
MX21: Compilation fix for devices.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sascha Hauer committed Aug 14, 2009
1 parent 2718c15 commit f6d2fa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/mach-mx2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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[] = {
Expand Down

0 comments on commit f6d2fa7

Please sign in to comment.