mirror of
https://github.com/torvalds/linux
synced 2024-09-28 15:31:19 +00:00
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>
This commit is contained in:
parent
68ef866170
commit
cbb052c905
|
@ -219,6 +219,7 @@ static struct platform_device serial_device = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_USB_ULPI)
|
||||||
static struct mxc_usbh_platform_data otg_pdata = {
|
static struct mxc_usbh_platform_data otg_pdata = {
|
||||||
.portsc = MXC_EHCI_MODE_ULPI,
|
.portsc = MXC_EHCI_MODE_ULPI,
|
||||||
.flags = MXC_EHCI_INTERFACE_DIFF_UNI,
|
.flags = MXC_EHCI_INTERFACE_DIFF_UNI,
|
||||||
|
@ -228,6 +229,7 @@ static struct mxc_usbh_platform_data usbh2_pdata = {
|
||||||
.portsc = MXC_EHCI_MODE_ULPI,
|
.portsc = MXC_EHCI_MODE_ULPI,
|
||||||
.flags = MXC_EHCI_INTERFACE_DIFF_UNI,
|
.flags = MXC_EHCI_INTERFACE_DIFF_UNI,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct fsl_usb2_platform_data otg_device_pdata = {
|
static struct fsl_usb2_platform_data otg_device_pdata = {
|
||||||
.operating_mode = FSL_USB2_DR_DEVICE,
|
.operating_mode = FSL_USB2_DR_DEVICE,
|
||||||
|
|
Loading…
Reference in a new issue