Skip to content

Commit 308f100

Browse files
dtorLiam Girdwood
authored andcommitted
Regulators: max8660 - annotate probe and remove methods
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>
1 parent bd88c9b commit 308f100

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎drivers/regulator/max8660.c‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,16 +345,16 @@ static struct regulator_desc max8660_reg[] = {
345345
},
346346
};
347347

348-
static int max8660_probe(struct i2c_client *client,
349-
const struct i2c_device_id *i2c_id)
348+
static int __devinit max8660_probe(struct i2c_client *client,
349+
const struct i2c_device_id *i2c_id)
350350
{
351351
struct regulator_dev **rdev;
352352
struct max8660_platform_data *pdata = client->dev.platform_data;
353353
struct max8660 *max8660;
354354
int boot_on, i, id, ret = -EINVAL;
355355

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

@@ -462,7 +462,7 @@ static int max8660_probe(struct i2c_client *client,
462462
return ret;
463463
}
464464

465-
static int max8660_remove(struct i2c_client *client)
465+
static int __devexit max8660_remove(struct i2c_client *client)
466466
{
467467
struct regulator_dev **rdev = i2c_get_clientdata(client);
468468
int i;
@@ -485,9 +485,10 @@ MODULE_DEVICE_TABLE(i2c, max8660_id);
485485

486486
static struct i2c_driver max8660_driver = {
487487
.probe = max8660_probe,
488-
.remove = max8660_remove,
488+
.remove = __devexit_p(max8660_remove),
489489
.driver = {
490490
.name = "max8660",
491+
.owner = THIS_MODULE,
491492
},
492493
.id_table = max8660_id,
493494
};

0 commit comments

Comments
 (0)