diff mbox

[U-Boot,v2,2/6] clk: add needed include and declaration to include/clk.h

Message ID 1452658573-6942-3-git-send-email-yamada.masahiro@socionext.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Masahiro Yamada Jan. 13, 2016, 4:16 a.m. UTC
This header uses ulong, so it needs to include <linux/types.h>.
Likewise, "struct udevice" must be declared before it is used.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 include/clk.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Simon Glass Jan. 16, 2016, 1:27 a.m. UTC | #1
On 12 January 2016 at 21:16, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> This header uses ulong, so it needs to include <linux/types.h>.
> Likewise, "struct udevice" must be declared before it is used.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> Acked-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2: None
>
>  include/clk.h | 4 ++++
>  1 file changed, 4 insertions(+)

Applied to u-boot-dm, thanks!
diff mbox

Patch

diff --git a/include/clk.h b/include/clk.h
index f244301..371784a 100644
--- a/include/clk.h
+++ b/include/clk.h
@@ -8,6 +8,10 @@ 
 #ifndef _CLK_H_
 #define _CLK_H_
 
+#include <linux/types.h>
+
+struct udevice;
+
 int soc_clk_dump(void);
 
 struct clk_ops {