mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
b71d9e8b38
commit
8b8d59f323
5 changed files with 19 additions and 15 deletions
|
@ -150,7 +150,7 @@ extern int tusb6010_platform_retime(unsigned is_refclk);
|
|||
/*
|
||||
* U-Boot specfic stuff
|
||||
*/
|
||||
int musb_register(struct musb_hdrc_platform_data *plat, void *bdata,
|
||||
void *ctl_regs);
|
||||
struct musb *musb_register(struct musb_hdrc_platform_data *plat, void *bdata,
|
||||
void *ctl_regs);
|
||||
|
||||
#endif /* __LINUX_USB_MUSB_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue