]> git.baikalelectronics.ru Git - uboot.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)
commitd88c9c57ce5521b7d920263e462e5e58f6a446c8
treedc78ea6e5360a3bbd74f90cc260f78828bd2efdd
parent5a73ad26d4aa06d747947eeaa4a31331d80f45ba
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