From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Tue, 24 Feb 2015 12:56:06 +0100 Subject: [U-Boot] [PATCH 1/2] usb: common: provide a _weak board_usb_cleanup() function In-Reply-To: <1421651236-9760-2-git-send-email-ideal.song@samsung.com> References: <1421651236-9760-1-git-send-email-ideal.song@samsung.com> <1421651236-9760-2-git-send-email-ideal.song@samsung.com> Message-ID: <20150224125606.2cbe25ff@amdc2363> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek > 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 > --- > 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 */ Acked-by: Lukasz Majewski Marek could you take this patch (and the following one) to -usb tree? -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group