Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee48a75c authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[ARM] fix AT91 include loops



AT91 has one include loop in its header files:

  include/asm-arm/io.h <- include/asm-arm/arch-at91/io.h <-
   include/asm-arm/io.h

Circular include dependencies are dangerous since they can result in
inconsistent definitions being provided to other code, especially if
'#ifndef' constructs are used.

Solve this by removing the offending includes.  Built tested using my
AT91 configuration.

Acked-by: default avatarAndrew Victor <linux@maxim.org.za>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 1beee8dc
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -21,8 +21,6 @@
#ifndef __ASM_ARCH_IO_H
#ifndef __ASM_ARCH_IO_H
#define __ASM_ARCH_IO_H
#define __ASM_ARCH_IO_H


#include <asm/io.h>

#define IO_SPACE_LIMIT		0xFFFFFFFF
#define IO_SPACE_LIMIT		0xFFFFFFFF


#define __io(a)			((void __iomem *)(a))
#define __io(a)			((void __iomem *)(a))