Skip to content

Commit 16aabfe

Browse files
Fabio EstevamMarek Vasut
Fabio Estevam
authored and
Marek Vasut
committed
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 <[email protected]> Acked-by: Peng Fan <[email protected]>
1 parent 48b1cff commit 16aabfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/spl/spl_sdp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image,
1919

2020
usb_gadget_initialize(controller_index);
2121

22-
board_usb_init(0, USB_INIT_DEVICE);
22+
board_usb_init(controller_index, USB_INIT_DEVICE);
2323

2424
g_dnl_clear_detach();
2525
ret = g_dnl_register("usb_dnl_sdp");

0 commit comments

Comments
 (0)