]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: at91: clock: Add missing include of asm/io.h
authorAlexander Dahl <ada@thorsis.com>
Tue, 1 Oct 2024 12:07:33 +0000 (14:07 +0200)
committerEugen Hristev <eugen.hristev@linaro.org>
Fri, 18 Oct 2024 07:10:41 +0000 (10:10 +0300)
In one inline function in this header `readl()` is used, but the
declaration was not found, so buildman gave this warning:

    w+include/asm/arch/clk.h: In function 'get_h32mxdiv':
    w+include/asm/arch/clk.h:65:16: warning: implicit declaration of function 'readl' [-Wimplicit-function-declaration]

Fixes: 927b901b47a6 ("ARM: atmel: add sama5d4ek board support")
Signed-off-by: Alexander Dahl <ada@thorsis.com>
arch/arm/mach-at91/include/mach/clk.h

index c1d92739e47207c35d4e40692b8b7a14a548d94c..09b8f0586c63c2a47257569c4dfe2865efa09bec 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_pmc.h>
 #include <asm/global_data.h>
+#include <asm/io.h>
 
 #define GCK_CSS_SLOW_CLK       0
 #define GCK_CSS_MAIN_CLK       1