[U-Boot] [PATCH] clk: Correct compilation when OF_CONTROL is not set
Masahiro Yamada
yamada.masahiro at socionext.com
Thu Jan 21 04:06:15 CET 2016
2016-01-21 11:41 GMT+09:00 Simon Glass <sjg at chromium.org>:
> At present clk.h does not build without OF_CONTROL, but it is clearly
> intended to. Fix it.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> include/clk.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/clk.h b/include/clk.h
> index 05c5a79..e6ab934 100644
> --- a/include/clk.h
> +++ b/include/clk.h
> @@ -8,6 +8,7 @@
> #ifndef _CLK_H_
> #define _CLK_H_
>
> +#include <errno.h>
> #include <linux/types.h>
>
> struct udevice;
> @@ -153,7 +154,7 @@ int fdt_clk_get(const void *fdt, int nodeoffset, int index,
> struct udevice **dev);
> #else
> static inline int fdt_clk_get(const void *fdt, int nodeoffset, int index,
> - struct udevice **dev);
> + struct udevice **dev)
> {
> return -ENOSYS;
> }
Thanks for pointing this out.
But, I assume yours will go in:
http://patchwork.ozlabs.org/patch/571015/
Please just drop mine.
--
Best Regards
Masahiro Yamada
More information about the U-Boot
mailing list