diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-01-10 17:33:16 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-23 12:29:26 -0500 |
commit | 382db811a8cc1427efabdc959cd1aeef8685ffa6 (patch) | |
tree | c25e2ac2808be67e74b5ab8b833a2ea20571bce4 /drivers/scsi/megaraid | |
parent | cc75e8ab6f262a3ea60e8d8268f48da5365f2823 (diff) |
[SCSI] megaraid: fix section mismatch
Change megaraid_pci_driver_g variable name so that it matches the modpost
whitelist that allows pointers to init text/data.
WARNING: vmlinux.o(.data+0x1a8e30): Section mismatch: reference to .init.text:megaraid_probe_one (between 'megaraid_pci_driver_g' and 'class_device_attr_megaraid_mbox_app_hndl')
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_mbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index c8923108183a..24e32e446e76 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c | |||
@@ -300,7 +300,7 @@ static struct pci_device_id pci_id_table_g[] = { | |||
300 | MODULE_DEVICE_TABLE(pci, pci_id_table_g); | 300 | MODULE_DEVICE_TABLE(pci, pci_id_table_g); |
301 | 301 | ||
302 | 302 | ||
303 | static struct pci_driver megaraid_pci_driver_g = { | 303 | static struct pci_driver megaraid_pci_driver = { |
304 | .name = "megaraid", | 304 | .name = "megaraid", |
305 | .id_table = pci_id_table_g, | 305 | .id_table = pci_id_table_g, |
306 | .probe = megaraid_probe_one, | 306 | .probe = megaraid_probe_one, |
@@ -394,7 +394,7 @@ megaraid_init(void) | |||
394 | 394 | ||
395 | 395 | ||
396 | // register as a PCI hot-plug driver module | 396 | // register as a PCI hot-plug driver module |
397 | rval = pci_register_driver(&megaraid_pci_driver_g); | 397 | rval = pci_register_driver(&megaraid_pci_driver); |
398 | if (rval < 0) { | 398 | if (rval < 0) { |
399 | con_log(CL_ANN, (KERN_WARNING | 399 | con_log(CL_ANN, (KERN_WARNING |
400 | "megaraid: could not register hotplug support.\n")); | 400 | "megaraid: could not register hotplug support.\n")); |
@@ -415,7 +415,7 @@ megaraid_exit(void) | |||
415 | con_log(CL_DLEVEL1, (KERN_NOTICE "megaraid: unloading framework\n")); | 415 | con_log(CL_DLEVEL1, (KERN_NOTICE "megaraid: unloading framework\n")); |
416 | 416 | ||
417 | // unregister as PCI hotplug driver | 417 | // unregister as PCI hotplug driver |
418 | pci_unregister_driver(&megaraid_pci_driver_g); | 418 | pci_unregister_driver(&megaraid_pci_driver); |
419 | 419 | ||
420 | return; | 420 | return; |
421 | } | 421 | } |