From a042f9218b233cc67c23f1f21e80e3d30639aeee Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 19 Jan 2004 05:09:02 -0800 Subject: [PATCH] [PATCH] Eicon isdn driver hardware access fix From: Armin It fixes access to hardware memory of wrong size and therefore removes a compiler warning. The hardware trap variable must be read as 32bit value. --- drivers/isdn/hardware/eicon/s_bri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hardware/eicon/s_bri.c b/drivers/isdn/hardware/eicon/s_bri.c index 24df86bf41436..7b5495f46700b 100644 --- a/drivers/isdn/hardware/eicon/s_bri.c +++ b/drivers/isdn/hardware/eicon/s_bri.c @@ -61,7 +61,7 @@ static void bri_cpu_trapped (PISDN_ADAPTER IoAdapter) { /* * check for trapped MIPS 3xxx CPU, dump only exception frame */ - if ( READ_WORD(&Xlog[0x80 / sizeof(Xlog[0])]) == 0x99999999 ) + if ( READ_DWORD(&Xlog[0x80 / sizeof(Xlog[0])]) == 0x99999999 ) { dump_trap_frame (IoAdapter, &((byte *)Xlog)[0x90]) ; IoAdapter->trapped = 1 ; -- 2.53.0