diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-26 20:45:27 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-08 09:33:31 -0400 |
commit | 021abf696fca37963db1f72e7e35d2ccdbe285ef (patch) | |
tree | 8df7ee335951fa7291232b646f2f375aa31dfbc6 /include/clk.h | |
parent | 43ebbfc39ff0b59047b84827a9f92f4a8ff9bb9b (diff) | |
download | u-boot-021abf696fca37963db1f72e7e35d2ccdbe285ef.tar.gz |
Revert "ns16650: Make sure we have CONFIG_CLK set before using infrastructure"
This reverts commit 82f5279b0cd99a9163d34cfe926d0316d9dc0d37.
The build failure of k2*evm boards was fixed in a different way by
the previous commit. It is nasty to patch generic drivers around
with #ifdef CONFIG_CLK just for the KeyStone's matter.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/clk.h')
-rw-r--r-- | include/clk.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/include/clk.h b/include/clk.h index fe1f8922c6..5a5c2ff1e6 100644 --- a/include/clk.h +++ b/include/clk.h @@ -98,6 +98,19 @@ int clk_get_by_index(struct udevice *dev, int index, struct clk *clk); * @return 0 if OK, or a negative error code. */ int clk_get_by_name(struct udevice *dev, const char *name, struct clk *clk); +#else +static inline int clk_get_by_index(struct udevice *dev, int index, + struct clk *clk) +{ + return -ENOSYS; +} + +static inline int clk_get_by_name(struct udevice *dev, const char *name, + struct clk *clk) +{ + return -ENOSYS; +} +#endif /** * clk_request - Request a clock by provider-specific ID. @@ -162,17 +175,5 @@ int clk_enable(struct clk *clk); int clk_disable(struct clk *clk); int soc_clk_dump(void); -#else -static inline int clk_get_by_index(struct udevice *dev, int index, - struct clk *clk) -{ - return -ENOSYS; -} -static inline int clk_get_by_name(struct udevice *dev, const char *name, - struct clk *clk) -{ - return -ENOSYS; -} -#endif #endif |