usb: ulpi: Define a *otg_ulpi_create no-op
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 20 Mar 2013 13:35:44 +0000 (10:35 -0300)
committerFelipe Balbi <balbi@ti.com>
Wed, 20 Mar 2013 15:30:40 +0000 (17:30 +0200)
commit7fa4cd1a78ea5af688ffce45553abbee9d7afd84
tree8504ffc3fd9d2e2abd90c39c11edf6667c8d9075
parent3416905ba058e43112ad7b1b4859797f027f5a07
usb: ulpi: Define a *otg_ulpi_create no-op

Building a kernel for imx_v4_v5_defconfig with CONFIG_USB_ULPI disabled, results
in the following error:

arch/arm/mach-imx/built-in.o: In function 'pca100_init':
platform-mx2-emma.c:(.init.text+0x6788): undefined reference to 'otg_ulpi_create'
platform-mx2-emma.c:(.init.text+0x682c): undefined reference to 'mxc_ulpi_access_ops'

Fix this by providing a no-op definition of *otg_ulpi_create for the case when
CONFIG_USB_ULPI is not defined.

Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/linux/usb/ulpi.h