diff options
author | Wanlong Gao <gaowanlong@cn.fujitsu.com> | 2011-08-04 00:32:31 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-24 08:09:08 -0400 |
commit | d036c96e703c176250503194f4fcd8b96e606b52 (patch) | |
tree | 3beb8d61fce7aeb3bbfd8928d0f7869c7b55e343 /drivers/mfd | |
parent | c3b92c8787367a8bb53d57d9789b558f1295cc96 (diff) |
mfd: Fix section mismatch warning in ab3550-core
This patch fixes:
WARNING: drivers/mfd/built-in.o(.data+0x9998): Section mismatch in reference from the variable ab3550_driver to the function .init.text:ab3550_probe()
The variable ab3550_driver references
the function __init ab3550_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab3550-core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mfd/ab3550-core.c b/drivers/mfd/ab3550-core.c index 56ba1943c91d..882ea7192d8b 100644 --- a/drivers/mfd/ab3550-core.c +++ b/drivers/mfd/ab3550-core.c | |||
@@ -1086,7 +1086,7 @@ static inline void ab3550_remove_debugfs(void) | |||
1086 | * This sets up a default config in the AB3550 chip so that it | 1086 | * This sets up a default config in the AB3550 chip so that it |
1087 | * will work as expected. | 1087 | * will work as expected. |
1088 | */ | 1088 | */ |
1089 | static int __init ab3550_setup(struct ab3550 *ab) | 1089 | static int __devinit ab3550_setup(struct ab3550 *ab) |
1090 | { | 1090 | { |
1091 | int err = 0; | 1091 | int err = 0; |
1092 | int i; | 1092 | int i; |
@@ -1193,7 +1193,7 @@ struct ab_family_id { | |||
1193 | char *name; | 1193 | char *name; |
1194 | }; | 1194 | }; |
1195 | 1195 | ||
1196 | static const struct ab_family_id ids[] __initdata = { | 1196 | static const struct ab_family_id ids[] __devinitconst = { |
1197 | /* AB3550 */ | 1197 | /* AB3550 */ |
1198 | { | 1198 | { |
1199 | .id = AB3550_P1A, | 1199 | .id = AB3550_P1A, |
@@ -1205,7 +1205,7 @@ static const struct ab_family_id ids[] __initdata = { | |||
1205 | } | 1205 | } |
1206 | }; | 1206 | }; |
1207 | 1207 | ||
1208 | static int __init ab3550_probe(struct i2c_client *client, | 1208 | static int __devinit ab3550_probe(struct i2c_client *client, |
1209 | const struct i2c_device_id *id) | 1209 | const struct i2c_device_id *id) |
1210 | { | 1210 | { |
1211 | struct ab3550 *ab; | 1211 | struct ab3550 *ab; |
@@ -1326,7 +1326,7 @@ exit_no_detect: | |||
1326 | return err; | 1326 | return err; |
1327 | } | 1327 | } |
1328 | 1328 | ||
1329 | static int __exit ab3550_remove(struct i2c_client *client) | 1329 | static int __devexit ab3550_remove(struct i2c_client *client) |
1330 | { | 1330 | { |
1331 | struct ab3550 *ab = i2c_get_clientdata(client); | 1331 | struct ab3550 *ab = i2c_get_clientdata(client); |
1332 | int num_i2c_clients = AB3550_NUM_BANKS; | 1332 | int num_i2c_clients = AB3550_NUM_BANKS; |
@@ -1359,7 +1359,7 @@ static struct i2c_driver ab3550_driver = { | |||
1359 | }, | 1359 | }, |
1360 | .id_table = ab3550_id, | 1360 | .id_table = ab3550_id, |
1361 | .probe = ab3550_probe, | 1361 | .probe = ab3550_probe, |
1362 | .remove = __exit_p(ab3550_remove), | 1362 | .remove = __devexit_p(ab3550_remove), |
1363 | }; | 1363 | }; |
1364 | 1364 | ||
1365 | static int __init ab3550_i2c_init(void) | 1365 | static int __init ab3550_i2c_init(void) |