diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2010-05-21 00:52:06 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-07-26 08:17:34 -0400 |
commit | c18e8fa5e56b07b5c723535c6539850c2ad95a19 (patch) | |
tree | 213eca808b4b03b0ad82f80876a2f4fcb92170d8 /arch/arm/mach-mx3/mach-pcm043.c | |
parent | 21b0734476c3327d5fd3247335da01d5ad3bf103 (diff) |
pcm037/pcm043/pca100: fix ULPI-related build warnings
Like this one (if CONFIG_USB_ULPI is not set):
arch/arm/mach-mx3/mach-pcm043.c:312: warning: 'otg_pdata' defined but not used
arch/arm/mach-mx3/mach-pcm043.c:317: warning: 'usbh1_pdata' defined but not used
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-pcm043.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-pcm043.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mach-pcm043.c b/arch/arm/mach-mx3/mach-pcm043.c index 78d9185a9d4b..8071b7281c4b 100644 --- a/arch/arm/mach-mx3/mach-pcm043.c +++ b/arch/arm/mach-mx3/mach-pcm043.c | |||
@@ -309,6 +309,7 @@ static struct mxc_nand_platform_data pcm037_nand_board_info = { | |||
309 | .hw_ecc = 1, | 309 | .hw_ecc = 1, |
310 | }; | 310 | }; |
311 | 311 | ||
312 | #if defined(CONFIG_USB_ULPI) | ||
312 | static struct mxc_usbh_platform_data otg_pdata = { | 313 | static struct mxc_usbh_platform_data otg_pdata = { |
313 | .portsc = MXC_EHCI_MODE_UTMI, | 314 | .portsc = MXC_EHCI_MODE_UTMI, |
314 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | 315 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, |
@@ -319,6 +320,7 @@ static struct mxc_usbh_platform_data usbh1_pdata = { | |||
319 | .flags = MXC_EHCI_INTERFACE_SINGLE_UNI | MXC_EHCI_INTERNAL_PHY | | 320 | .flags = MXC_EHCI_INTERFACE_SINGLE_UNI | MXC_EHCI_INTERNAL_PHY | |
320 | MXC_EHCI_IPPUE_DOWN, | 321 | MXC_EHCI_IPPUE_DOWN, |
321 | }; | 322 | }; |
323 | #endif | ||
322 | 324 | ||
323 | static struct fsl_usb2_platform_data otg_device_pdata = { | 325 | static struct fsl_usb2_platform_data otg_device_pdata = { |
324 | .operating_mode = FSL_USB2_DR_DEVICE, | 326 | .operating_mode = FSL_USB2_DR_DEVICE, |