Skip to content

Commit

Permalink
usb: mv-otg - Fix build if CONFIG_USB is not set
Browse files Browse the repository at this point in the history
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: Geert 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: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Geert Uytterhoeven authored and Greg Kroah-Hartman committed Jan 24, 2012
1 parent 15699e6 commit 2053c2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/otg/mv_otg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
#ifdef CONFIG_USB
struct otg_transceiver *otg = &mvotg->otg;
struct usb_hcd *hcd;

Expand All @@ -216,6 +217,7 @@ static void mv_otg_start_host(struct mv_otg *mvotg, int on)
usb_add_hcd(hcd, hcd->irq, IRQF_SHARED);
else
usb_remove_hcd(hcd);
#endif /* CONFIG_USB */
}

static void mv_otg_start_periphrals(struct mv_otg *mvotg, int on)
Expand Down

0 comments on commit 2053c2d

Please sign in to comment.