diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-13 04:02:30 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-14 06:41:15 -0400 |
commit | f6d2fa7dcbd438da4d150f695ebd219419a325ce (patch) | |
tree | 001a3e65dfa34ff91967807f4475f9a84b83305a /arch | |
parent | 2718c15c5fffa9d05e5076451ab4fc81caac313f (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx2/devices.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c index 62810cbe4e30..50199aff0143 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 = { | |||
437 | .resource = mxc_sdhc2_resources, | 437 | .resource = mxc_sdhc2_resources, |
438 | }; | 438 | }; |
439 | 439 | ||
440 | #ifdef CONFIG_MACH_MX27 | ||
440 | static struct resource otg_resources[] = { | 441 | static struct resource otg_resources[] = { |
441 | { | 442 | { |
442 | .start = OTG_BASE_ADDR, | 443 | .start = OTG_BASE_ADDR, |
@@ -527,7 +528,7 @@ struct platform_device mxc_usbh2 = { | |||
527 | .resource = mxc_usbh2_resources, | 528 | .resource = mxc_usbh2_resources, |
528 | .num_resources = ARRAY_SIZE(mxc_usbh2_resources), | 529 | .num_resources = ARRAY_SIZE(mxc_usbh2_resources), |
529 | }; | 530 | }; |
530 | 531 | #endif | |
531 | 532 | ||
532 | /* GPIO port description */ | 533 | /* GPIO port description */ |
533 | static struct mxc_gpio_port imx_gpio_ports[] = { | 534 | static struct mxc_gpio_port imx_gpio_ports[] = { |