Skip to contentSkip to conversation

da903x: Fix section mismatch

PATCH In review Jean Delvare 2 participants 2 messages Dec 15, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 da903x: Fix section mismatch

da903x_remove_subdevs() can be called in case of device initialization error, so it shouldn't be tagged __devexit.

Cc Mike Rapoport <[email protected]>
Cc Eric Miao <[email protected]>
Cc Samuel Ortiz <[email protected]>
Cc Liam Girdwood <[email protected]>
---
 drivers/mfd/da903x.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mfd/da903x.c +2 -2
@@ -435,13 +435,13 @@ static const struct i2c_device_id da903x
 };
 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);
 }
Signature · 1 line
Jean Delvare
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Jean Delvare

da903x_remove_subdevs() can be called in case of device initialization error, so it shouldn't be tagged __devexit.

Good catch.