Skip to content

Commit

Permalink
mfd: Fix section mismatch in da903x
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Jan 4, 2009
1 parent 88e75cc commit 3f874b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/da903x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3f874b6

Please sign in to comment.