浏览代码

mfd: twl4030: fix ELF section mismatch...

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>
Daniel J Blueman 15 年之前
父节点
当前提交
b5e102cdcf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mfd/twl4030-core.c

+ 1 - 1
drivers/mfd/twl4030-core.c

@@ -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;