Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: Fix twl_probe section mismatch warning in mfd/twl-core.c

Fix the following section mismatch warning when building
omap2plus_defconfig:

WARNING: vmlinux.o(.data+0x47d7c): Section mismatch in reference
from the variable twl_driver to the function .init.text:twl_probe()

Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Bryan Wu and committed by
Samuel Ortiz
5b9cecd6 e098aded

+1 -1
+1 -1
drivers/mfd/twl-core.c
··· 1003 1003 } 1004 1004 1005 1005 /* NOTE: this driver only handles a single twl4030/tps659x0 chip */ 1006 - static int __init 1006 + static int __devinit 1007 1007 twl_probe(struct i2c_client *client, const struct i2c_device_id *id) 1008 1008 { 1009 1009 int status;