[parisc-linux-cvs] cleanups

Helge Deller deller@gmx.de
Thu, 29 Nov 2001 21:17:41 +0100


--------------Boundary-00=_HDWKW75369SJDIX1TK22
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

> Log message:
> - remove unneeded functions,
> - remove an unneeded typecast


--------------Boundary-00=_HDWKW75369SJDIX1TK22
Content-Type: text/plain;
  charset="iso-8859-1";
  name="diff"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="diff"

Index: fbcon-sti.c
===================================================================
RCS file: /var/cvs/linux/drivers/video/fbcon-sti.c,v
retrieving revision 1.9
diff -u -p -r1.9 fbcon-sti.c
--- fbcon-sti.c	2001/11/09 23:36:41	1.9
+++ fbcon-sti.c	2001/11/29 20:16:49
@@ -79,30 +79,6 @@ memcpy_fromhp_tohp(void *dest, void *src
 	}
 }
 
-static void
-memcpy_tohp(void *dest, void *src, int count)
-{
-	unsigned long d = (unsigned long) dest;
-	u32 *s = (u32 *)src;
-
-	count += 3;
-	count &= ~3; /* XXX */
-
-	d = ram2log(dest);
-
-	while(count) {
-		count--;
-		gsc_writel(*s++, d);
-		d += 32*4;
-	}
-}
-
-static void
-memcopy_fromhp(void *dest, void *src, int count)
-{
-	/* FIXME */
-	printk("uhm ...\n");
-}
 
 static void
 memset_tohp(void *dest, u32 word, int count)
Index: sti/sticore.c
===================================================================
RCS file: /var/cvs/linux/drivers/video/sti/sticore.c,v
retrieving revision 1.27
diff -u -p -r1.27 sticore.c
--- sti/sticore.c	2001/11/03 23:06:00	1.27
+++ sti/sticore.c	2001/11/29 20:16:49
@@ -783,7 +783,7 @@ sti_try_rom_generic(unsigned long addres
 test_rom:
 	/* if we can't read the ROM, bail out early.  Not being able
 	 * to read the hpa is okay, for romless sti */
-	if (pdc_add_valid((void*)address))
+	if (pdc_add_valid(address))
 		goto out_err;
 
 	sig = gsc_readl(address);

--------------Boundary-00=_HDWKW75369SJDIX1TK22--