diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2011-12-13 15:30:04 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-01-08 18:37:35 -0500 |
commit | 97e43c983c721a47546e6db3b7711dcd912a6481 (patch) | |
tree | 0c258f44116fe54a420910d82ae48e8f987904fe /drivers/mfd/cs5535-mfd.c | |
parent | 876989d58658858f27a461f0b4b43fa750a208f4 (diff) |
mfd: Fix cs5535 section mismatch
Silence following warnings:
WARNING: drivers/mfd/cs5535-mfd.o(.data+0x20): Section mismatch in
reference from the variable cs5535_mfd_drv to the function
.devinit.text:cs5535_mfd_probe()
The variable cs5535_mfd_drv references
the function __devinit cs5535_mfd_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
WARNING: drivers/mfd/cs5535-mfd.o(.data+0x28): Section mismatch in
reference from the variable cs5535_mfd_drv to the function
.devexit.text:cs5535_mfd_remove()
The variable cs5535_mfd_drv references
the function __devexit cs5535_mfd_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
Rename the variable from *_drv to *_driver so
modpost ignore the OK references to __devinit/__devexit
functions.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/cs5535-mfd.c')
-rw-r--r-- | drivers/mfd/cs5535-mfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/cs5535-mfd.c b/drivers/mfd/cs5535-mfd.c index 155fa0407882..e488a78a2fd6 100644 --- a/drivers/mfd/cs5535-mfd.c +++ b/drivers/mfd/cs5535-mfd.c | |||
@@ -179,7 +179,7 @@ static struct pci_device_id cs5535_mfd_pci_tbl[] = { | |||
179 | }; | 179 | }; |
180 | MODULE_DEVICE_TABLE(pci, cs5535_mfd_pci_tbl); | 180 | MODULE_DEVICE_TABLE(pci, cs5535_mfd_pci_tbl); |
181 | 181 | ||
182 | static struct pci_driver cs5535_mfd_drv = { | 182 | static struct pci_driver cs5535_mfd_driver = { |
183 | .name = DRV_NAME, | 183 | .name = DRV_NAME, |
184 | .id_table = cs5535_mfd_pci_tbl, | 184 | .id_table = cs5535_mfd_pci_tbl, |
185 | .probe = cs5535_mfd_probe, | 185 | .probe = cs5535_mfd_probe, |
@@ -188,12 +188,12 @@ static struct pci_driver cs5535_mfd_drv = { | |||
188 | 188 | ||
189 | static int __init cs5535_mfd_init(void) | 189 | static int __init cs5535_mfd_init(void) |
190 | { | 190 | { |
191 | return pci_register_driver(&cs5535_mfd_drv); | 191 | return pci_register_driver(&cs5535_mfd_driver); |
192 | } | 192 | } |
193 | 193 | ||
194 | static void __exit cs5535_mfd_exit(void) | 194 | static void __exit cs5535_mfd_exit(void) |
195 | { | 195 | { |
196 | pci_unregister_driver(&cs5535_mfd_drv); | 196 | pci_unregister_driver(&cs5535_mfd_driver); |
197 | } | 197 | } |
198 | 198 | ||
199 | module_init(cs5535_mfd_init); | 199 | module_init(cs5535_mfd_init); |