aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2/mach-pca100.c
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2010-05-21 00:52:06 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-07-26 08:17:34 -0400
commitc18e8fa5e56b07b5c723535c6539850c2ad95a19 (patch)
tree213eca808b4b03b0ad82f80876a2f4fcb92170d8 /arch/arm/mach-mx2/mach-pca100.c
parent21b0734476c3327d5fd3247335da01d5ad3bf103 (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-mx2/mach-pca100.c')
-rw-r--r--arch/arm/mach-mx2/mach-pca100.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/mach-pca100.c b/arch/arm/mach-mx2/mach-pca100.c
index a87422ed4ff5..7651d0ef4666 100644
--- a/arch/arm/mach-mx2/mach-pca100.c
+++ b/arch/arm/mach-mx2/mach-pca100.c
@@ -253,6 +253,7 @@ static struct imxmmc_platform_data sdhc_pdata = {
253 .exit = pca100_sdhc2_exit, 253 .exit = pca100_sdhc2_exit,
254}; 254};
255 255
256#if defined(CONFIG_USB_ULPI)
256static int otg_phy_init(struct platform_device *pdev) 257static int otg_phy_init(struct platform_device *pdev)
257{ 258{
258 gpio_set_value(OTG_PHY_CS_GPIO, 0); 259 gpio_set_value(OTG_PHY_CS_GPIO, 0);
@@ -276,6 +277,7 @@ static struct mxc_usbh_platform_data usbh2_pdata = {
276 .portsc = MXC_EHCI_MODE_ULPI, 277 .portsc = MXC_EHCI_MODE_ULPI,
277 .flags = MXC_EHCI_INTERFACE_DIFF_UNI, 278 .flags = MXC_EHCI_INTERFACE_DIFF_UNI,
278}; 279};
280#endif
279 281
280static struct fsl_usb2_platform_data otg_device_pdata = { 282static struct fsl_usb2_platform_data otg_device_pdata = {
281 .operating_mode = FSL_USB2_DR_DEVICE, 283 .operating_mode = FSL_USB2_DR_DEVICE,