diff options
| author | Yoshihiro Shimoda <[email protected]> | 2018-08-20 03:10:26 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-10 18:40:29 +0000 |
| commit | fa827966090e2a6fc07b437d0d2ffae748ec6e28 (patch) | |
| tree | b415fe1dd8e8574cc4f8cf45391b325556a990d4 /tools/perf/scripts/python/sched-migration.py | |
| parent | usb: xhci: fix interrupt transfer error happened on MTK platforms (diff) | |
| download | kernel-fa827966090e2a6fc07b437d0d2ffae748ec6e28.tar.gz kernel-fa827966090e2a6fc07b437d0d2ffae748ec6e28.zip | |
usb: Change usb_of_get_companion_dev() place to usb/common
Since renesas_usb3 udc driver calls usb_of_get_companion_dev()
which is on usb/core/of.c, build error like below happens if we
disable CONFIG_USB because the usb/core/ needs CONFIG_USB:
ERROR: "usb_of_get_companion_dev" [drivers/usb/gadget/udc/renesas_usb3.ko] undefined!
According to the usb/gadget/Kconfig, "NOTE: Gadget support
** DOES NOT ** depend on host-side CONFIG_USB !!".
So, to fix the issue, this patch changes the usb_of_get_companion_dev()
place from usb/core/of.c to usb/common/common.c to be called by both
host and gadget.
Reported-by: John Garry <[email protected]>
Fixes: 39facfa01c9f ("usb: gadget: udc: renesas_usb3: Add register of usb role switch")
Signed-off-by: Yoshihiro Shimoda <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
