Skip to content

Commit

Permalink
Regulators: max1586 - annotate probe and remove methods
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Dmitry Torokhov authored and Liam Girdwood committed Mar 3, 2010
1 parent ebbed04 commit bd88c9b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/regulator/max1586.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ static struct regulator_desc max1586_reg[] = {
},
};

static int max1586_pmic_probe(struct i2c_client *client,
const struct i2c_device_id *i2c_id)
static int __devinit max1586_pmic_probe(struct i2c_client *client,
const struct i2c_device_id *i2c_id)
{
struct regulator_dev **rdev;
struct max1586_platform_data *pdata = client->dev.platform_data;
Expand Down Expand Up @@ -235,7 +235,7 @@ static int max1586_pmic_probe(struct i2c_client *client,
return ret;
}

static int max1586_pmic_remove(struct i2c_client *client)
static int __devexit max1586_pmic_remove(struct i2c_client *client)
{
struct regulator_dev **rdev = i2c_get_clientdata(client);
int i;
Expand All @@ -257,9 +257,10 @@ MODULE_DEVICE_TABLE(i2c, max1586_id);

static struct i2c_driver max1586_pmic_driver = {
.probe = max1586_pmic_probe,
.remove = max1586_pmic_remove,
.remove = __devexit_p(max1586_pmic_remove),
.driver = {
.name = "max1586",
.owner = THIS_MODULE,
},
.id_table = max1586_id,
};
Expand Down

0 comments on commit bd88c9b

Please sign in to comment.