Commit 120503f32e1dcad3069633d6319d5d6c37e65c08

Authored by Dan Murphy
Committed by Marek Vasut
1 parent d3d037ae18

ARM: OMAP: USB: Fix linker error when ULPI is not defined

Fix the linker error for missing ulpi_reset when ulpi is not defined
in the board config.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Marek Vasut <marex@denx.de>

Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff

drivers/usb/host/ehci-omap.c
... ... @@ -79,6 +79,7 @@
79 79 writel(reg, &usbtll->channel_conf + port);
80 80 }
81 81  
  82 +#ifdef CONFIG_USB_ULPI
82 83 static void omap_ehci_soft_phy_reset(int port)
83 84 {
84 85 struct ulpi_viewport ulpi_vp;
... ... @@ -88,6 +89,12 @@
88 89  
89 90 ulpi_reset(&ulpi_vp);
90 91 }
  92 +#else
  93 +static void omap_ehci_soft_phy_reset(int port)
  94 +{
  95 + return;
  96 +}
  97 +#endif
91 98  
92 99 inline int __board_usb_init(void)
93 100 {