[PATCH] Fixes agp_* struct renaming casualties

From: Herbert Xu (herbert@gondor.apana.org.au)
Date: Tue May 27 2003 - 05:41:36 EST


The following patch fixes some remaining references to agp_* structures
without struct.
--
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Index: drivers/video/i810/i810.h
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/drivers/video/i810/i810.h,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 i810.h
--- drivers/video/i810/i810.h 4 May 2003 23:53:41 -0000 1.1.1.4
+++ drivers/video/i810/i810.h 27 May 2003 10:29:33 -0000
@@ -203,8 +203,8 @@
#define LOCKUP 8

struct gtt_data {
- agp_memory *i810_fb_memory;
- agp_memory *i810_cursor_memory;
+ struct agp_memory *i810_fb_memory;
+ struct agp_memory *i810_cursor_memory;
};

struct mode_registers {
Index: drivers/video/sis/sis_main.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/drivers/video/sis/sis_main.c,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 sis_main.c
--- drivers/video/sis/sis_main.c 4 May 2003 23:53:35 -0000 1.1.1.4
+++ drivers/video/sis/sis_main.c 27 May 2003 10:30:47 -0000
@@ -2868,8 +2868,8 @@
unsigned long *write_port = 0;
SIS_CMDTYPE cmd_type;
#ifndef AGPOFF
- agp_kern_info *agp_info;
- agp_memory *agp;
+ struct agp_kern_info *agp_info;
+ struct agp_memory *agp;
u32 agp_phys;
#endif
#endif
@@ -2946,8 +2946,8 @@

#ifndef AGPOFF
if (sisfb_queuemode == AGP_CMD_QUEUE) {
- agp_info = vmalloc(sizeof(agp_kern_info));
- memset((void*)agp_info, 0x00, sizeof(agp_kern_info));
+ agp_info = vmalloc(sizeof(*agp_info));
+ memset((void*)agp_info, 0x00, sizeof(*agp_info));
agp_copy_info(agp_info);

agp_backend_acquire();