[parisc-linux-cvs] __initdata removal

Helge Deller deller@gmx.de
Wed, 28 Feb 2001 02:19:03 +0100


- since register_driver now stores a pointer to the structs we shouldn't
  mark them as __initdata (suggested by 5116@telia.com)

Index: busdevice.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/gsc/busdevice.c,v
retrieving revision 1.17
diff -u -r1.17 busdevice.c
--- busdevice.c	2001/02/27 20:36:58	1.17
+++ busdevice.c	2001/02/28 01:07:52
@@ -39,14 +39,14 @@
 #endif
 
 
-static struct pa_iodc_driver busdev_drivers_for[] __initdata = {
+static struct pa_iodc_driver busdev_drivers_for[] = {
 /* I'm pretty sure this covers them all. */
   {HPHW_BA, 0x0, 0, 0x00081, 0, 0,
 	DRIVER_CHECK_HWTYPE + DRIVER_CHECK_SVERSION,
-	"Lasi", "generic", (void *) lasi_init_chip},
+	"Lasi", "generic", lasi_init_chip},
   {HPHW_BA, 0x0, 0, 0x00070, 0, 0,
 	DRIVER_CHECK_HWTYPE + DRIVER_CHECK_SVERSION,
-	"ASP", "generic", (void *) asp_init_chip},
+	"ASP", "generic", asp_init_chip},
   { 0 }
 };
 
Index: hil.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/gsc/hil.c,v
retrieving revision 1.3
diff -u -r1.3 hil.c
--- hil.c	2001/02/07 07:49:01	1.3
+++ hil.c	2001/02/28 01:07:52
@@ -50,10 +50,10 @@
 }
 
 
-static struct pa_iodc_driver hil_drivers_for[] __initdata = {
+static struct pa_iodc_driver hil_drivers_for[] = {
   {HPHW_FIO, 0x0, 0x0, 0x73, 0x0, 0,
 	DRIVER_CHECK_SVERSION + DRIVER_CHECK_HWTYPE,
-	"HIL", "712, 715 or similiar", (void *) hil_init_chip},
+	"HIL", "712, 715 or similiar", hil_init_chip},
   { 0 }
 };
 
Index: lan.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/gsc/lan.c,v
retrieving revision 1.6
diff -u -r1.6 lan.c
--- lan.c	2001/02/07 07:49:01	1.6
+++ lan.c	2001/02/28 01:07:52
@@ -66,13 +66,13 @@
 }
 
 
-static struct pa_iodc_driver lan_drivers_for[] __initdata = {
+static struct pa_iodc_driver lan_drivers_for[] = {
   {HPHW_FIO, 0x0, 0x0, 0x8a, 0x0, 0,
 	DRIVER_CHECK_SVERSION + DRIVER_CHECK_HWTYPE,
-	"Lasi i82596 LAN", "712, 715 or similiar", (void *) lan_init_chip},
+	"Lasi i82596 LAN", "712, 715 or similiar", lan_init_chip},
   {HPHW_FIO, 0x0, 0x0, 0x72, 0x0, 0,
 	DRIVER_CHECK_SVERSION + DRIVER_CHECK_HWTYPE,
-	"ASP i82596 LAN", "700 or similiar (old)", (void *) lan_init_chip},
+	"ASP i82596 LAN", "700 or similiar (old)", lan_init_chip},
   { 0 }
 };
 
Index: serial.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/gsc/serial.c,v
retrieving revision 1.7
diff -u -r1.7 serial.c
--- serial.c	2001/02/07 07:49:01	1.7
+++ serial.c	2001/02/28 01:07:52
@@ -91,17 +91,17 @@
 }
 
 
-static struct pa_iodc_driver serial_drivers_for[] __initdata = {
+static struct pa_iodc_driver serial_drivers_for[] = {
   {HPHW_FIO, 0x05F, 0x0, 0x00081, 0x0, 0,		/* A-class 180 */
 	DRIVER_CHECK_HVERSION + DRIVER_CHECK_HVERSION_REV + 
 	DRIVER_CHECK_SVERSION + DRIVER_CHECK_HWTYPE,
-	"serial device", "unknown", (void *) serial_init_chip},
+	"serial device", "unknown", serial_init_chip},
   {HPHW_FIO, 0x0, 0x0, 0x8c, 0x0, 0,			/* 715/64 */
 	DRIVER_CHECK_SVERSION + DRIVER_CHECK_HWTYPE,
-	"serial device", "715/new or similiar", (void *) serial_init_chip},
+	"serial device", "715/new or similiar", serial_init_chip},
   {HPHW_FIO, 0x0, 0x0, 0x75, 0x0, 0,			/* 715/33 */
 	DRIVER_CHECK_SVERSION + DRIVER_CHECK_HWTYPE,
-	"serial device", "712, 715/old or similiar", (void *) serial_init_chip},
+	"serial device", "712, 715/old or similiar", serial_init_chip},
   { 0 }
 };