[parisc-linux-cvs] LCD fix for 64-bit

Paul Bame bame@fc.hp.com
Fri, 23 Feb 2001 19:44:41 -0700


Index: led.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/led.c,v
retrieving revision 1.14
diff -u -r1.14 led.c
--- led.c	2001/02/07 07:48:58	1.14
+++ led.c	2001/02/24 02:38:51
@@ -472,9 +472,6 @@
 	return lcd_info.lcd_width;
 }
 
-
-
-
 /*
    ** led_init()
    ** 
@@ -525,8 +522,8 @@
 
 		switch (lcd_info.model) {
 		case DISPLAY_MODEL_LCD:		/* LCD display */
-			if (pdc_result[0] != sizeof(struct pdc_chassis_lcd_info_ret_block)
-			    && pdc_result[0] != sizeof(struct pdc_chassis_lcd_info_ret_block) - 1)
+			if (pdc_result[0] < 
+			    (unsigned long)&lcd_info._pad - (unsigned long)&lcd_info - 1)
 				 goto not_found;
 			pr_debug("%s: min_cmd_delay = %d uS\n",
 		             __FUNCTION__, lcd_info.min_cmd_delay);