diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2015-02-23 18:40:18 +0530 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-04-14 05:48:11 +0200 |
commit | db378d786df0675aa6fc795a2198d000fddd33cc (patch) | |
tree | fcd23aab7385c927ef239d4a77dacedee470274c /common/usb.c | |
parent | 04afd5b59b2edcb0bd035f126bdbe27c31782772 (diff) |
common: cmd_dfu: invoke board_usb_cleanup() for cleaning up
Invoked board_usb_cleanup for cleaning up initialized USB. It
will be invoked if the user enterts ctrl-C.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'common/usb.c')
-rw-r--r-- | common/usb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/usb.c b/common/usb.c index bf76c41593..d94640a99e 100644 --- a/common/usb.c +++ b/common/usb.c @@ -1090,4 +1090,10 @@ int board_usb_init(int index, enum usb_init_type init) { return 0; } + +__weak +int board_usb_cleanup(int index, enum usb_init_type init) +{ + return 0; +} /* EOF */ |