mfd: twl4030: fix ELF section mismatch...
authorDaniel J Blueman <daniel.blueman@gmail.com>
Wed, 25 Nov 2009 12:12:59 +0000 (12:12 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 25 Nov 2009 14:23:19 +0000 (14:23 +0000)
Since twl4030_probe is only called from functions in the init ELF
section, annotate it so.

Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/mfd/twl4030-core.c

index 0ee81e4..5049d04 100644 (file)
@@ -774,7 +774,7 @@ static int twl4030_remove(struct i2c_client *client)
 }
 
 /* NOTE:  this driver only handles a single twl4030/tps659x0 chip */
-static int
+static int __init
 twl4030_probe(struct i2c_client *client, const struct i2c_device_id *id)
 {
        int                             status;