Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185676
b: refs/heads/master
c: 308f100
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov authored and Liam Girdwood committed Mar 3, 2010
1 parent edec446 commit 727237d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd88c9b285b76f329243d5c80960c23a04004043
refs/heads/master: 308f100f2ef8e8b9f65b0f3c2a1c7044ec0e65a5
11 changes: 6 additions & 5 deletions trunk/drivers/regulator/max8660.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,16 +345,16 @@ static struct regulator_desc max8660_reg[] = {
},
};

static int max8660_probe(struct i2c_client *client,
const struct i2c_device_id *i2c_id)
static int __devinit max8660_probe(struct i2c_client *client,
const struct i2c_device_id *i2c_id)
{
struct regulator_dev **rdev;
struct max8660_platform_data *pdata = client->dev.platform_data;
struct max8660 *max8660;
int boot_on, i, id, ret = -EINVAL;

if (pdata->num_subdevs > MAX8660_V_END) {
dev_err(&client->dev, "Too much regulators found!\n");
dev_err(&client->dev, "Too many regulators found!\n");
goto out;
}

Expand Down Expand Up @@ -462,7 +462,7 @@ static int max8660_probe(struct i2c_client *client,
return ret;
}

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

static struct i2c_driver max8660_driver = {
.probe = max8660_probe,
.remove = max8660_remove,
.remove = __devexit_p(max8660_remove),
.driver = {
.name = "max8660",
.owner = THIS_MODULE,
},
.id_table = max8660_id,
};
Expand Down

0 comments on commit 727237d

Please sign in to comment.