Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8f3dc1371efb5fd5f1dc02b2a01da589f2d220a0
Commit:     8f3dc1371efb5fd5f1dc02b2a01da589f2d220a0
Parent:     c3fae6d163f4647e9390eac3f2a1201e91cd6669
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Tue Sep 18 15:41:39 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Fri Sep 21 11:57:54 2007 +0900

    sh: se7206: Handle non-SuperIO I/O ports.
    
    This fixes up the port calculation logic for non-SuperIO accesses,
    before these were always matching the MRSHPC base, now just make
    sure the original port is handed back if it's not in the I/O port
    range.
    
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 arch/sh/boards/se/7206/io.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/sh/boards/se/7206/io.c b/arch/sh/boards/se/7206/io.c
index eb30dc2..1308e61 100644
--- a/arch/sh/boards/se/7206/io.c
+++ b/arch/sh/boards/se/7206/io.c
@@ -30,6 +30,8 @@ port2adr(unsigned int port)
                return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000));
        else if (port >= 0x300 && port < 0x310)
                return (volatile __u16 *) (PA_SMSC + (port - 0x300));
+
+       return (volatile __u16 *)port;
 }
 
 unsigned char se7206_inb(unsigned long port)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to