Skip to contentSkip to conversation

parport_pc: use devinitdata

PATCH In review Randy.Dunlap 1 participant 2 messages Feb 28, 2005 Parallel port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parport_pc: use devinitdata

parport_init_mode is used by devinit code so it should be __devinitdata;

Error: ./drivers/parport/parport_pc.o .text refers to 0000000000002601 R_X86_64_PC32 .init.data+0x00000000000000e0

diffstat:=

 drivers/parport/parport_pc.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/parport/parport_pc.c renamed from drivers/parport/parport_pc.c~parport_pc_sections +1 -1
diff -Naurp ./drivers/parport/parport_pc.c~parport_pc_sections ./drivers/parport/parport_pc.c
@@ -2488,7 +2488,7 @@ static int __devinit sio_ite_8872_probe 
 
 /* VIA 8231 support by Pavel Fedin <[email protected]>
    based on VIA 686a support code by Jeff Garzik <[email protected]> */
-static int __initdata parport_init_mode = 0;
+static int __devinitdata parport_init_mode = 0;
 
 /* Data for two known VIA chips */
 static struct parport_pc_via_data via_686a_data __devinitdata = {

---

#1 lore raw
Quoted 3 lines · Randy.Dunlap

parport_init_mode is used by devinit code so it should be __devinitdata;

Error: ./drivers/parport/parport_pc.o .text refers to 0000000000002601 R_X86_64_PC32 .init.data+0x00000000000000e0

Yes, aeb already fixed this one.... ignore it.

Signature · 1 line
~Randy