]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: asm/io.h: remove redundant #if !defined(readb) block
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 10 Sep 2019 08:51:54 +0000 (08:51 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 19:33:27 +0000 (15:33 -0400)
readb is unconditionally defined earlier in io.h, so there's no point
checking whether it's undefined.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
arch/arm/include/asm/io.h

index 78b183d42f66585535a69d225440d255d46f502f..723f3cf497d783790f465600ef9d93093d86ff50 100644 (file)
@@ -319,21 +319,6 @@ extern void __readwrite_bug(const char *fn);
 #define memcpy_fromio(a, b, c)         memcpy((a), (void *)(b), (c))
 #define memcpy_toio(a, b, c)           memcpy((void *)(a), (b), (c))
 
-#if !defined(readb)
-
-#define readb(addr)                    (__readwrite_bug("readb"),0)
-#define readw(addr)                    (__readwrite_bug("readw"),0)
-#define readl(addr)                    (__readwrite_bug("readl"),0)
-#define writeb(v,addr)                 __readwrite_bug("writeb")
-#define writew(v,addr)                 __readwrite_bug("writew")
-#define writel(v,addr)                 __readwrite_bug("writel")
-
-#define eth_io_copy_and_sum(a,b,c,d)   __readwrite_bug("eth_io_copy_and_sum")
-
-#define check_signature(io,sig,len)    (0)
-
-#endif
-
 /*
  * If this architecture has ISA IO, then define the isa_read/isa_write
  * macros.