]> git.sur5r.net Git - u-boot/commit
clk: fix compilation errors for poplar platform
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 25 Jul 2017 11:24:45 +0000 (13:24 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:46 +0000 (23:34 +0200)
commitb108d8a0de3ddc6fe8aae55bc54e3edc69b4778b
treec29d26cc338509987683a9b7ce90b7174f724311
parentd38a8ea19c1d82296619557069618aaefc1ad977
clk: fix compilation errors for poplar platform

Move clk_release_all() prototype and definition inside
OF_CONTROL flag to avoid following compilation error for
poplar platform:

aarch64:  +   poplar
+drivers/usb/host/built-in.o: In function `ehci_usb_remove':
+drivers/usb/host/ehci-generic.c:159: undefined reference to `clk_release_all'
+drivers/usb/host/built-in.o: In function `ehci_usb_probe':
+drivers/usb/host/ehci-generic.c:133: undefined reference to `clk_release_all'
+make[1]: *** [u-boot] Error 139
+make: *** [sub-make] Error 2

Introduced by 4e542c4 clk: add clk_release_all()

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/clk/clk-uclass.c
include/clk.h