Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] remove devinit from ioc4 pci_driver

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

(akpm: good documentation, that. Link this driver into vmlinux with hotplug
CPU disabled and it'll crash).

Signed-off-by: Dave Jones <davej@redhat.com>
Cc: Brent Casavant <bcasavan@sgi.com>
Cc: Pat Gefre <pfg@sgi.com>
Cc: Jes Sorensen <jes@sgi.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Dave Jones and committed by
Linus Torvalds
85bd8434 1e075d58

+1 -1
+1 -1
drivers/sn/ioc4.c
··· 438 438 {0} 439 439 }; 440 440 441 - static struct pci_driver __devinitdata ioc4_driver = { 441 + static struct pci_driver ioc4_driver = { 442 442 .name = "IOC4", 443 443 .id_table = ioc4_id_table, 444 444 .probe = ioc4_probe,