]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: sdp: Pass the USB index to board_usb_init()
authorFabio Estevam <festevam@denx.de>
Wed, 13 Jul 2022 20:39:46 +0000 (17:39 -0300)
committerMarek Vasut <marex@denx.de>
Thu, 14 Jul 2022 14:13:11 +0000 (16:13 +0200)
commit16aabfe2f29d4682b2176095029fa307caccaced
tree767df9c5bceada8690d7b6d7f502493b9aaf28b6
parent48b1cff94744b88821bc9cf8a0e1c54b5e87926c
spl: sdp: Pass the USB index to board_usb_init()

board_usb_init() should receive the controller_index as its
first parameter instead of having it hardcoded as 0.

All in-tree users have CONFIG_SPL_SDP_USB_DEV as 0, so this error
should not affect any board.

Fix it by passing controller_index as the parameter of board_usb_init().

Signed-off-by: Fabio Estevam <festevam@denx.de>
Acked-by: Peng Fan <peng.fan@nxp.com>
common/spl/spl_sdp.c