realtek: include io.h in mach-rtl83xx.h
authorSander Vanheule <sander@svanheule.net>
Sun, 5 Dec 2021 10:44:50 +0000 (11:44 +0100)
committerSander Vanheule <sander@svanheule.net>
Sat, 11 Dec 2021 19:05:31 +0000 (20:05 +0100)
The readl and writel calls used in macros defined in this header are not
included here. As a result, this header cannot be included by itself,
but must be preceded by other includes providing these calls. Fix this
by including asm/io.h in this header too.

Co-developed-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Tested-by: Bjørn Mork <bjorn@mork.no>
target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/mach-rtl83xx.h

index ecec0fec2dce5cbb57a3acaac00de068ba959645..831edf8de76b680a23806efc34a0ebe799d43177 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _MACH_RTL838X_H_
 #define _MACH_RTL838X_H_
 
+#include <asm/io.h>
 #include <asm/types.h>
 /*
  * Register access macros