diff options
author | Mark Brown <broonie@sirena.org.uk> | 2009-01-04 15:31:49 +0100 |
---|---|---|
committer | Samuel Ortiz <samuel@sortiz.org> | 2009-01-04 15:31:49 +0100 |
commit | 3f874b6643e189d3d07618928ceed0013d71593e (patch) | |
tree | 3458077647d5ee244b212f12ccba328aa8f64bbc | |
parent | 88e75cc347f66bc20e3c2b920431fc07253d69be (diff) | |
download | kernel_goldelico_gta04-3f874b6643e189d3d07618928ceed0013d71593e.zip kernel_goldelico_gta04-3f874b6643e189d3d07618928ceed0013d71593e.tar.gz kernel_goldelico_gta04-3f874b6643e189d3d07618928ceed0013d71593e.tar.bz2 |
mfd: Fix section mismatch in da903x
The subdevice removal functions are marked __devexit but are referenced
from the error handling path when probing so are needed even when
__devexit functions are removed.
Signed-off-by: Mark Brown <broonie@sirena.org.uk>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
-rw-r--r-- | drivers/mfd/da903x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/da903x.c b/drivers/mfd/da903x.c index fcaf1f6..99f8dcf 100644 --- a/drivers/mfd/da903x.c +++ b/drivers/mfd/da903x.c @@ -447,13 +447,13 @@ static const struct i2c_device_id da903x_id_table[] = { }; MODULE_DEVICE_TABLE(i2c, da903x_id_table); -static int __devexit __remove_subdev(struct device *dev, void *unused) +static int __remove_subdev(struct device *dev, void *unused) { platform_device_unregister(to_platform_device(dev)); return 0; } -static int __devexit da903x_remove_subdevs(struct da903x_chip *chip) +static int da903x_remove_subdevs(struct da903x_chip *chip) { return device_for_each_child(chip->dev, NULL, __remove_subdev); } |