[v2,12/14] sunxi: Register usb_ether

Message ID 69b49529c480163c93c0ca7d4c1c8d472e2b9b3f.1505242834.git-series.maxime.ripard@free-electrons.com
State New
Headers show
Series
  • sunxi: convert musb to the device model and enable usb_ether
Related show

Commit Message

Maxime Ripard Sept. 12, 2017, 7:01 p.m.
Call the function to register the usb_ether gadget in the board.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 board/sunxi/board.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Łukasz Majewski Sept. 13, 2017, 10:46 a.m. | #1
On 09/12/2017 09:01 PM, Maxime Ripard wrote:
> Call the function to register the usb_ether gadget in the board.
> 
> Reviewed-by: Simon Glass <sjg@chromium.org>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> ---
>   board/sunxi/board.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/board/sunxi/board.c b/board/sunxi/board.c
> index f9224360d758..610fa89056ef 100644
> --- a/board/sunxi/board.c
> +++ b/board/sunxi/board.c
> @@ -737,6 +737,8 @@ int misc_init_r(void)
>   		return ret;
>   #endif
>   
> +	usb_ether_init();
> +
>   	return 0;
>   }
>   
> 
Reviewed-by: Łukasz Majewski <lukma@denx.de>

Patch

diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index f9224360d758..610fa89056ef 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -737,6 +737,8 @@  int misc_init_r(void)
 		return ret;
 #endif
 
+	usb_ether_init();
+
 	return 0;
 }