diff options
author | Eric Bénard <eric@eukrea.com> | 2010-06-18 10:19:55 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-07-26 08:18:02 -0400 |
commit | cbb052c905367e20c11f3b107cfe07e36dd6c8cd (patch) | |
tree | fffffd077ade0bffac170e376ce8bd07fb2867c7 /arch | |
parent | 68ef866170dc92fb29e96e85fb6f438839500681 (diff) |
mach-cpuimx27: fix USB_ULPI build warnings
when CONFIG_USB_ULPI is not defined we actually get :
warning: 'otg_pdata' defined but not used
warning: 'usbh2_pdata' defined but not used
Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx2/mach-cpuimx27.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/mach-cpuimx27.c b/arch/arm/mach-mx2/mach-cpuimx27.c index dc2dca3ff9b7..55291787d5d1 100644 --- a/arch/arm/mach-mx2/mach-cpuimx27.c +++ b/arch/arm/mach-mx2/mach-cpuimx27.c | |||
@@ -219,6 +219,7 @@ static struct platform_device serial_device = { | |||
219 | }; | 219 | }; |
220 | #endif | 220 | #endif |
221 | 221 | ||
222 | #if defined(CONFIG_USB_ULPI) | ||
222 | static struct mxc_usbh_platform_data otg_pdata = { | 223 | static struct mxc_usbh_platform_data otg_pdata = { |
223 | .portsc = MXC_EHCI_MODE_ULPI, | 224 | .portsc = MXC_EHCI_MODE_ULPI, |
224 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | 225 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, |
@@ -228,6 +229,7 @@ static struct mxc_usbh_platform_data usbh2_pdata = { | |||
228 | .portsc = MXC_EHCI_MODE_ULPI, | 229 | .portsc = MXC_EHCI_MODE_ULPI, |
229 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | 230 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, |
230 | }; | 231 | }; |
232 | #endif | ||
231 | 233 | ||
232 | static struct fsl_usb2_platform_data otg_device_pdata = { | 234 | static struct fsl_usb2_platform_data otg_device_pdata = { |
233 | .operating_mode = FSL_USB2_DR_DEVICE, | 235 | .operating_mode = FSL_USB2_DR_DEVICE, |