projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f35688
)
sunxi: only init USB Ethernet gadget when it's enabled
author
Icenowy Zheng
<icenowy@aosc.io>
Thu, 28 Sep 2017 14:16:38 +0000
(22:16 +0800)
committer
Maxime Ripard
<maxime.ripard@free-electrons.com>
Tue, 3 Oct 2017 17:12:06 +0000
(19:12 +0200)
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
patch
|
blob
|
history
diff --git
a/board/sunxi/board.c
b/board/sunxi/board.c
index cb42742dd23b06688757219cbb3c699d8d190f9c..6e13ee32c14d7715739f2dcbdbbff4c54b839862 100644
(file)
--- 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;
}