From: Sascha Hauer Date: Thu, 13 Aug 2009 08:02:30 +0000 (+0200) Subject: MX21: Compilation fix for devices.c X-Git-Tag: v2.6.32-rc1~691^2~1^2~5^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6d2fa7dcbd438da4d150f695ebd219419a325ce;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 --- diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c index 62810cb..50199af 100644 --- 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[] = {