diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-05-05 16:15:09 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2020-05-09 11:05:09 +0300 |
commit | 4748d396399a9383bbb3b391b4661850261efc3f (patch) | |
tree | b8ad54ec112c7d6261b69abb13e5084a9f300b9c /Documentation/mips | |
parent | e27d4b30b71c66986196d8a1eb93cba9f602904a (diff) | |
download | linux-4748d396399a9383bbb3b391b4661850261efc3f.tar.gz linux-4748d396399a9383bbb3b391b4661850261efc3f.tar.bz2 linux-4748d396399a9383bbb3b391b4661850261efc3f.zip |
usb: dwc3: select USB_ROLE_SWITCH
Calling into the role switch API requires that these functions
are loaded, if they are in a loadable module and dwc3 itself
is built-in, this produces a link error:
drivers/usb/dwc3/drd.o: In function `dwc3_usb_role_switch_get':
drd.c:(.text+0x26): undefined reference to `usb_role_switch_get_drvdata'
drivers/usb/dwc3/drd.o: In function `dwc3_usb_role_switch_set':
drd.c:(.text+0x97): undefined reference to `usb_role_switch_get_drvdata'
drivers/usb/dwc3/drd.o: In function `dwc3_drd_init':
drd.c:(.text+0x1ca7): undefined reference to `usb_role_switch_register'
drivers/usb/dwc3/drd.o: In function `dwc3_drd_exit':
drd.c:(.text+0x1e92): undefined reference to `usb_role_switch_unregister'
Select the USB_ROLE_SWITCH symbol from dwc3 in that configuration.
Fixes: 0339f7fbc82e ("usb: dwc3: fix up for role switch API change")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'Documentation/mips')
0 files changed, 0 insertions, 0 deletions