Commit 3f96f87520c22efe4a8b43f45f1b2011da50dc06

Authored by Paul Burton
Committed by Daniel Schwierzeck
1 parent 639200f6a0

clk: Use dummy clk_get_by_* functions when CONFIG_CLK is disabled

The implementations of clk_get_by_index & clk_get_by_name are only
available when CONFIG_CLK is enabled. Provide the dummies when this is
not the case in order to avoid build failures.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -59,7 +59,7 @@
59 59 unsigned long id;
60 60 };
61 61  
62   -#if CONFIG_IS_ENABLED(OF_CONTROL)
  62 +#if CONFIG_IS_ENABLED(OF_CONTROL) && CONFIG_IS_ENABLED(CLK)
63 63 struct phandle_2_cell;
64 64 int clk_get_by_index_platdata(struct udevice *dev, int index,
65 65 struct phandle_2_cell *cells, struct clk *clk);