Skip to contentSkip to conversation

MFD: da9052-i2c - add some section annotations

PATCH Applied Dmitry Torokhov 2 participants 2 messages Mar 17, 2012 – Mar 20, 2012

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

PATCH 1/1 MFD: da9052-i2c - add some section annotations

da9052_i2c_remove() can and should be marked as __devexit.

---
 drivers/mfd/da9052-i2c.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mfd/da9052-i2c.c +2 -2
index 44b97c7..f99685a 100644
@@ -87,7 +87,7 @@ err:
 	return ret;
 }
 
-static int da9052_i2c_remove(struct i2c_client *client)
+static int __devexit da9052_i2c_remove(struct i2c_client *client)
 {
 	struct da9052 *da9052 = i2c_get_clientdata(client);
 
@@ -107,7 +107,7 @@ static struct i2c_device_id da9052_i2c_id[] = {
 
 static struct i2c_driver da9052_i2c_driver = {
 	.probe = da9052_i2c_probe,
-	.remove = da9052_i2c_remove,
+	.remove = __devexit_p(da9052_i2c_remove),
 	.id_table = da9052_i2c_id,
 	.driver = {
 		.name = "da9052",
Signature · 1 line
Dmitry
Applied
#1 lore raw

Hi Dmitry,

Quoted 1 line · Dmitry Torokhov

da9052_i2c_remove() can and should be marked as __devexit.

Applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/