[parisc-linux-cvs] 64-bit wax cleanups

Ryan Bradetich rbradetich@uswest.net
Sun, 04 Mar 2001 11:43:14 -0700


This is a multi-part message in MIME format.
--------------25A758D8FE249FE390F6938F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

A small patch to make wax 64-bit clean and clean up some compiler
warnings.

- Ryan


--------------25A758D8FE249FE390F6938F
Content-Type: text/plain; charset=us-ascii;
 name="wax.c.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="wax.c.patch"

Index: drivers/gsc/wax.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/gsc/wax.c,v
retrieving revision 1.6
diff -u -p -r1.6 wax.c
--- wax.c	2001/02/07 07:49:01	1.6
+++ wax.c	2001/03/04 18:34:37
@@ -35,14 +35,15 @@ static struct pa_iodc_driver wax_driver_
 	{0}
 };
 
-int __init register_wax_driver(void) {
+void __init register_wax_driver(void) 
+{
 	register_driver(wax_driver_for);
 }
 
 static int wax_find_irq(struct busdevice *lasi_dev, struct hp_device *dev)
 {
 	int irq;
-	int off = ((int) dev->hpa) & 0xffff;
+	int off = ((unsigned long) dev->hpa) & 0xffff;
 
 	/*
 	** "irq" bits below are numbered relative to most significant bit.
@@ -90,6 +91,10 @@ wax_init_irq(struct busdevice *wax)
 	** interrupts as they are registered as irq's in the WAX range.
 	*/
 }
+
+#ifdef CONFIG_WAX_EISA
+void __init register_wax_eisa_driver(void);
+#endif
 
 int __init
 wax_init_chip(struct hp_device *d, struct pa_iodc_driver *dri)

--------------25A758D8FE249FE390F6938F--