[U-Boot] [PATCH 1/2] usb: common: provide a _weak board_usb_cleanup() function

Inha Song ideal.song at samsung.com
Mon Jan 19 08:07:15 CET 2015


This patch implement _weak function for board_usb_cleanup.
This function (usb_board_cleanup) implementation is board-specific
feature.

board_usb_cleanup function can be used to clean up after failed
board-specific USB initialization.

Signed-off-by: Inha Song <ideal.song at samsung.com>
---
 common/usb.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/common/usb.c b/common/usb.c
index 736cd9f..fbb4495 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -1063,4 +1063,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 */
-- 
2.0.0.390.gcb682f8



More information about the U-Boot mailing list