Skip to content

Commit

Permalink
mfd: Fix twl_probe section mismatch warning in mfd/twl-core.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bryan Wu authored and Samuel Ortiz committed Jan 14, 2011
1 parent e098ade commit 5b9cecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/twl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ static int twl_remove(struct i2c_client *client)
}

/* NOTE: this driver only handles a single twl4030/tps659x0 chip */
static int __init
static int __devinit
twl_probe(struct i2c_client *client, const struct i2c_device_id *id)
{
int status;
Expand Down

0 comments on commit 5b9cecd

Please sign in to comment.