X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fusb_gadget_sdp.c;h=808ed974fa7537a367f3b8d5567fe1d0988f6224;hb=afbdff18f4841b86f4ae294e1356eefa7c1565dd;hp=97d00ec5453879c37c40377454bd6aa2807e18bd;hpb=0bb430c8494e26e8d258cf6957cdd39d2ce4f309;p=oweals%2Fu-boot.git diff --git a/cmd/usb_gadget_sdp.c b/cmd/usb_gadget_sdp.c index 97d00ec545..808ed974fa 100644 --- a/cmd/usb_gadget_sdp.c +++ b/cmd/usb_gadget_sdp.c @@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * cmd_sdp.c -- sdp command * * Copyright (C) 2016 Toradex * Author: Stefan Agner - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -21,7 +20,7 @@ static int do_sdp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) char *usb_controller = argv[1]; int controller_index = simple_strtoul(usb_controller, NULL, 0); - board_usb_init(controller_index, USB_INIT_DEVICE); + usb_gadget_initialize(controller_index); g_dnl_clear_detach(); g_dnl_register("usb_dnl_sdp"); @@ -38,7 +37,7 @@ static int do_sdp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) exit: g_dnl_unregister(); - board_usb_cleanup(controller_index, USB_INIT_DEVICE); + usb_gadget_release(controller_index); return ret; }