[ARM] Fix EBSA110 network driver link detection
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 2 Oct 2005 17:02:25 +0000 (18:02 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 2 Oct 2005 17:02:25 +0000 (18:02 +0100)
EBSA110 link detection didn't read the register - it wrote it.  Oops.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/net/arm/am79c961a.c

index 9b659e3c8d674280bc283dd99f7a872c7b2b7d0d..9f6eb39cf492b59f984f7d69767430ed4e48dbed 100644 (file)
@@ -85,7 +85,7 @@ static inline unsigned short read_ireg(u_long base_addr, u_int reg)
        u_short v;
        __asm__(
        "str%?h %1, [%2]        @ NAT_RAP\n\t"
-       "str%?h %0, [%2, #8]    @ NET_IDP\n\t"
+       "ldr%?h %0, [%2, #8]    @ NET_IDP\n\t"
        : "=r" (v)
        : "r" (reg), "r" (ISAIO_BASE + 0x0464));
        return v;