summaryrefslogtreecommitdiff
path: root/include/clk.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-09-21 18:50:18 (GMT)
committerTom Rini <trini@konsulko.com>2016-09-21 18:50:18 (GMT)
commit423620b9d47a704124f9fd624b4de4ed56c600d6 (patch)
tree78fbffeb39460482565bd75fd32ad4ae1a9cd135 /include/clk.h
parentf85fad024f208ceedb3ce0bb1819936e62a0983e (diff)
parent31d36f748c52b22833aa946f6c406cc8fb2f1908 (diff)
downloadu-boot-423620b9d47a704124f9fd624b4de4ed56c600d6.tar.xz
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'include/clk.h')
-rw-r--r--include/clk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clk.h b/include/clk.h
index dc18b03..9b24522 100644
--- a/include/clk.h
+++ b/include/clk.h
@@ -59,7 +59,7 @@ struct clk {
unsigned long id;
};
-#if CONFIG_IS_ENABLED(OF_CONTROL)
+#if CONFIG_IS_ENABLED(OF_CONTROL) && CONFIG_IS_ENABLED(CLK)
struct phandle_2_cell;
int clk_get_by_index_platdata(struct udevice *dev, int index,
struct phandle_2_cell *cells, struct clk *clk);