Commit 41386bc8 authored by Paul Cercueil's avatar Paul Cercueil Committed by Greg Kroah-Hartman

usb: musb: Silence error about blacklisting hubs if !CONFIG_USB

Some drivers, like jz4740-musb, don't depend on CONFIG_USB.
Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Signed-off-by: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b063f04e
...@@ -1497,10 +1497,11 @@ static int musb_core_init(u16 musb_type, struct musb *musb) ...@@ -1497,10 +1497,11 @@ static int musb_core_init(u16 musb_type, struct musb *musb)
} else { } else {
musb->is_multipoint = 0; musb->is_multipoint = 0;
type = ""; type = "";
#ifndef CONFIG_USB_OTG_BLACKLIST_HUB if (IS_ENABLED(CONFIG_USB) &&
pr_err("%s: kernel must blacklist external hubs\n", !IS_ENABLED(CONFIG_USB_OTG_BLACKLIST_HUB)) {
musb_driver_name); pr_err("%s: kernel must blacklist external hubs\n",
#endif musb_driver_name);
}
} }
/* log release info */ /* log release info */
......
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