Skip to contentSkip to conversation

remove devinit from ioc4 pci_driver

PATCH Dave Jones 2 participants 2 messages Jun 28, 2006 – Jul 5, 2006

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

Documention/pci.txt states..
"The struct pci_driver shouldn't be marked with any of these tags." (Referring to __devinit and friends).

drivers/sn/ioc4.c renamed from drivers/sn/ioc4.c~ +1 -1
@@ -438,7 +438,7 @@ static struct pci_device_id ioc4_id_tabl
 	{0}
 };
 
-static struct pci_driver __devinitdata ioc4_driver = {
+static struct pci_driver ioc4_driver = {
 	.name = "IOC4",
 	.id_table = ioc4_id_table,
 	.probe = ioc4_probe,
Signature · 1 line
http://www.codemonkey.org.uk
#1 lore raw

It's a bit late and after-the-fact as I was on vacation, however:

Quoted 21 lines · Dave Jones

Documention/pci.txt states..
"The struct pci_driver shouldn't be marked with any of these tags." (Referring to __devinit and friends).

drivers/sn/ioc4.c renamed from drivers/sn/ioc4.c~ +1 -1
@@ -438,7 +438,7 @@ static struct pci_device_id ioc4_id_tabl
 	{0}
 };
 
-static struct pci_driver __devinitdata ioc4_driver = {
+static struct pci_driver ioc4_driver = {
 	.name = "IOC4",
 	.id_table = ioc4_id_table,
 	.probe = ioc4_probe,
Signature · 2 lines
-- 
http://www.codemonkey.org.uk
Signature · 3 lines
Brent Casavant                          All music is folk music.  I ain't
[email protected]                        never heard a horse sing a song.
Silicon Graphics, Inc.                    -- Louis Armstrong