diff options
| author | Icenowy Zheng <[email protected]> | 2017-09-28 22:16:38 +0800 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2017-10-03 19:12:06 +0200 |
| commit | e6ee85a6891eca187c9a9364c51690d3f6a36932 (patch) | |
| tree | baea81be43044407ba36b6d9a92de2a8c4f06e61 | |
| parent | 9f35688349cf019ce4f85c81d7ec1a34d865dcc4 (diff) | |
sunxi: only init USB Ethernet gadget when it's enabled
If the USB Ethernet gadget is not yet enabled, the call of
usb_ether_init in board/sunxi/board.c will lead to undefined reference
error when building.
Fix this problem.
Fixes: 50ddbf1199a0 ("sunxi: Register usb_ether")
Signed-off-by: Icenowy Zheng <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
| -rw-r--r-- | board/sunxi/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index cb42742dd23..6e13ee32c14 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -733,7 +733,9 @@ int misc_init_r(void) return ret; #endif +#ifdef CONFIG_USB_ETHER usb_ether_init(); +#endif return 0; } |
