patch-2.4.21 linux-2.4.21/drivers/gsc/lasi.c
Next file: linux-2.4.21/drivers/hil/hil_kbd.c
Previous file: linux-2.4.21/drivers/gsc/dino.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
2003-06-13 07:51:33.000000000 -0700
- Orig file:
linux-2.4.20/drivers/gsc/lasi.c
- Orig date:
2002-11-28 15:53:12.000000000 -0800
diff -urN linux-2.4.20/drivers/gsc/lasi.c linux-2.4.21/drivers/gsc/lasi.c
@@ -26,7 +26,7 @@
#include <asm/gsc.h>
#include <asm/hardware.h>
#include <asm/led.h>
-
+#include <asm/pdc.h>
#include "busdevice.h"
@@ -77,7 +77,10 @@
/* Resets */
/* gsc_writel(0xFFFFFFFF, lasi_base+0x2000);*/ /* Parallel */
- gsc_writel(0xFFFFFFFF, lasi_base+0x4004); /* Audio */
+
+ if(pdc_add_valid(lasi_base+0x4004) == PDC_OK)
+ gsc_writel(0xFFFFFFFF, lasi_base+0x4004); /* Audio */
+
/* gsc_writel(0xFFFFFFFF, lasi_base+0x5000);*/ /* Serial */
/* gsc_writel(0xFFFFFFFF, lasi_base+0x6000);*/ /* SCSI */
gsc_writel(0xFFFFFFFF, lasi_base+0x7000); /* LAN */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)