]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: clk: add stub when CONFIG_CLK is deactivated
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 27 Apr 2020 13:29:57 +0000 (15:29 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 28 Apr 2020 11:52:52 +0000 (13:52 +0200)
commit6f7917472e6428262c52c62526cdeda40a599644
treec609f89a520146aa1625915e71e8344b7ef983b4
parent3c425fc0ef4de31d350695c74db7a3d6be0379b6
dm: clk: add stub when CONFIG_CLK is deactivated

Add stub for functions clk_...() when CONFIG_CLK is deactivated.

This patch avoids compilation issues for driver using these API
without protection (#if CONFIG_IS_ENABLED(CLK))

For example, before this patch we have undefined reference to
`clk_disable_bulk') for code:
  clk_disable_bulk(&priv->clks);
  clk_release_bulk(&priv->clks);

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
include/clk.h