diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-11-24 13:49:07 -0500 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-11-24 13:51:52 -0500 |
commit | 5519d00e6a5d99a163484722ef7cea8bff47bc58 (patch) | |
tree | 9411f468758e567b9350036f993b29d612b73370 /drivers/power/olpc_battery.c | |
parent | 6c75ea1e582d12120072cae742a0d63ea8ac8c65 (diff) |
olpc_battery: Fix section mismatch noise
This patch fixes the following noise (by renaming _drv to _driver):
WARNING: drivers/power/olpc_battery.o(.data+0x100): Section mismatch in reference from the variable olpc_battery_drv to the function .devinit.text:olpc_battery_probe()
The variable olpc_battery_drv references
the function __devinit olpc_battery_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/power/olpc_battery.o(.data+0x104): Section mismatch in reference from the variable olpc_battery_drv to the function .devexit.text:olpc_battery_remove()
The variable olpc_battery_drv references
the function __devexit olpc_battery_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
WARNING: drivers/power/olpc_battery.o(.data+0x128): Section mismatch in reference from the variable olpc_battery_drv to the variable .devinit.rodata:olpc_battery_ids
The variable olpc_battery_drv references
the variable __devinitconst olpc_battery_ids
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
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/olpc_battery.c')
-rw-r--r-- | drivers/power/olpc_battery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/olpc_battery.c b/drivers/power/olpc_battery.c index 46a2f07edab1..dc60f61a3b9e 100644 --- a/drivers/power/olpc_battery.c +++ b/drivers/power/olpc_battery.c | |||
@@ -627,7 +627,7 @@ static const struct of_device_id olpc_battery_ids[] __devinitconst = { | |||
627 | }; | 627 | }; |
628 | MODULE_DEVICE_TABLE(of, olpc_battery_ids); | 628 | MODULE_DEVICE_TABLE(of, olpc_battery_ids); |
629 | 629 | ||
630 | static struct platform_driver olpc_battery_drv = { | 630 | static struct platform_driver olpc_battery_driver = { |
631 | .driver = { | 631 | .driver = { |
632 | .name = "olpc-battery", | 632 | .name = "olpc-battery", |
633 | .owner = THIS_MODULE, | 633 | .owner = THIS_MODULE, |
@@ -640,13 +640,13 @@ static struct platform_driver olpc_battery_drv = { | |||
640 | 640 | ||
641 | static int __init olpc_bat_init(void) | 641 | static int __init olpc_bat_init(void) |
642 | { | 642 | { |
643 | return platform_driver_register(&olpc_battery_drv); | 643 | return platform_driver_register(&olpc_battery_driver); |
644 | } | 644 | } |
645 | module_init(olpc_bat_init); | 645 | module_init(olpc_bat_init); |
646 | 646 | ||
647 | static void __exit olpc_bat_exit(void) | 647 | static void __exit olpc_bat_exit(void) |
648 | { | 648 | { |
649 | platform_driver_unregister(&olpc_battery_drv); | 649 | platform_driver_unregister(&olpc_battery_driver); |
650 | } | 650 | } |
651 | module_exit(olpc_bat_exit); | 651 | module_exit(olpc_bat_exit); |
652 | 652 | ||