Commit 42795410 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: fix gadget_is_musbhdrc()

I submitted the wrong version of the patch teaching about the driver
for Mentor's Highspeed Dual Role Controller (HDRC), whoops!  This
uses the right name for that driver.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 89ccbdc9
...@@ -100,9 +100,9 @@ ...@@ -100,9 +100,9 @@
#define gadget_is_musbhsfc(g) 0 #define gadget_is_musbhsfc(g) 0
#endif #endif
/* Mentor high speed "dual role" controller, peripheral mode */ /* Mentor high speed "dual role" controller, in peripheral role */
#ifdef CONFIG_USB_GADGET_MUSBHDRC #ifdef CONFIG_USB_GADGET_MUSB_HDRC
#define gadget_is_musbhdrc(g) !strcmp("musbhdrc_udc", (g)->name) #define gadget_is_musbhdrc(g) !strcmp("musb_hdrc", (g)->name)
#else #else
#define gadget_is_musbhdrc(g) 0 #define gadget_is_musbhdrc(g) 0
#endif #endif
......
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