[PATCH]: Fix xf86-input-keyboard build on Linux/sparc

David Miller davem at davemloft.net
Tue Feb 24 16:50:22 PST 2009


lnx_kbd.c: Fix Sparc build.

Signed-off-by: David S. Miller <davem at davemloft.net>

diff --git a/src/lnx_kbd.c b/src/lnx_kbd.c
index d599df7..cfe35a3 100644
--- a/src/lnx_kbd.c
+++ b/src/lnx_kbd.c
@@ -57,17 +57,6 @@ SetKbdLeds(InputInfoPtr pInfo, int leds)
 {
     int real_leds = 0;
 
-#if defined (__sparc__)
-    KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
-    if (pKbd->sunKbd) {
-  	if (leds & 0x08) real_leds |= XLED1;
-  	if (leds & 0x04) real_leds |= XLED3;
-  	if (leds & 0x02) real_leds |= XLED4;
-  	if (leds & 0x01) real_leds |= XLED2;
-        leds = real_leds;
-        real_leds = 0;
-    }
-#endif /* defined (__sparc__) */
 #ifdef LED_CAP
     if (leds & XLED1)  real_leds |= LED_CAP;
     if (leds & XLED2)  real_leds |= LED_NUM;


More information about the xorg-devel mailing list