Skip to content

Commit

Permalink
mfd: Add some da9052-i2c section annotations
Browse files Browse the repository at this point in the history
da9052_i2c_remove() can and should be marked as __devexit.

Signed-off-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
dtor authored and Samuel Ortiz committed Mar 20, 2012
1 parent 5364d0b commit bcc2d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/da9052-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static int __devinit da9052_i2c_probe(struct i2c_client *client,
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);

Expand All @@ -110,7 +110,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",
Expand Down

0 comments on commit bcc2d6d

Please sign in to comment.