]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: musb-new: Fix improper musb host pointer
authorJagan Teki <jagan@amarulasolutions.com>
Fri, 20 Jul 2018 07:13:56 +0000 (12:43 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 23 Aug 2018 12:01:24 +0000 (17:31 +0530)
commit8b8d59f323d7fbd589ecb32b408841b675ca53f7
treedc78ea6e5360a3bbd74f90cc260f78828bd2efdd
parentb71d9e8b3805305ea4116733f515061710ad7081
usb: musb-new: Fix improper musb host pointer

When MUSB is operating in peripheral mode, probe registering
musb core using musb_register which intern return int value
for validation. so there is no scope to preserve struct musb
pointer but the same can be used in .remove musb_stop.
So fix this by return musb_register with struct musb pointer.

Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Purna Chandra Mandal <purna.mandal@microchip.com>
Tested-by: Chen-Yu Tsai <wens@csie.org> # A33-OlinuXino
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
board/compulab/cm_t3517/cm_t3517.c
drivers/usb/musb-new/musb_uboot.c
drivers/usb/musb-new/pic32.c
drivers/usb/musb-new/sunxi.c
include/linux/usb/musb.h