commit | f4116b61193b97f7a1838cd80c35ee387b66f441 | [log] [tgz] |
---|---|---|
author | Icenowy Zheng <icenowy@aosc.io> | Thu Sep 28 22:16:38 2017 +0800 |
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | Tue Oct 03 19:12:06 2017 +0200 |
tree | baea81be43044407ba36b6d9a92de2a8c4f06e61 | |
parent | 53bba769dcd37153ed9570a6d16e328df0d42f1b [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 <icenowy@aosc.io> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>