]> git.sur5r.net Git - u-boot/commit
sunxi: only init USB Ethernet gadget when it's enabled
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 28 Sep 2017 14:16:38 +0000 (22:16 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 3 Oct 2017 17:12:06 +0000 (19:12 +0200)
commite6ee85a6891eca187c9a9364c51690d3f6a36932
treebaea81be43044407ba36b6d9a92de2a8c4f06e61
parent9f35688349cf019ce4f85c81d7ec1a34d865dcc4
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 <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
board/sunxi/board.c