Commit 2053c2d1 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Greg Kroah-Hartman

usb: mv-otg - Fix build if CONFIG_USB is not set

ERROR: "usb_remove_hcd" [drivers/usb/otg/mv_otg.ko] undefined!
ERROR: "usb_add_hcd" [drivers/usb/otg/mv_otg.ko] undefined!
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
--
Inpired by drivers/usb/otg/msm_otg.c. Is this correct?

 drivers/usb/otg/mv_otg.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 15699e6f
...@@ -202,6 +202,7 @@ static void mv_otg_init_irq(struct mv_otg *mvotg) ...@@ -202,6 +202,7 @@ static void mv_otg_init_irq(struct mv_otg *mvotg)
static void mv_otg_start_host(struct mv_otg *mvotg, int on) static void mv_otg_start_host(struct mv_otg *mvotg, int on)
{ {
#ifdef CONFIG_USB
struct otg_transceiver *otg = &mvotg->otg; struct otg_transceiver *otg = &mvotg->otg;
struct usb_hcd *hcd; struct usb_hcd *hcd;
...@@ -216,6 +217,7 @@ static void mv_otg_start_host(struct mv_otg *mvotg, int on) ...@@ -216,6 +217,7 @@ static void mv_otg_start_host(struct mv_otg *mvotg, int on)
usb_add_hcd(hcd, hcd->irq, IRQF_SHARED); usb_add_hcd(hcd, hcd->irq, IRQF_SHARED);
else else
usb_remove_hcd(hcd); usb_remove_hcd(hcd);
#endif /* CONFIG_USB */
} }
static void mv_otg_start_periphrals(struct mv_otg *mvotg, int on) static void mv_otg_start_periphrals(struct mv_otg *mvotg, int on)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment