Pārlūkot izejas kodu

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: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer 16 gadi atpakaļ
vecāks
revīzija
f6d2fa7dcb
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      arch/arm/mach-mx2/devices.c

+ 2 - 1
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[] = {