diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-04 10:52:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-04 10:52:06 -0500 |
commit | c8bf9fec478bb8d3c66067be2aaa4082b83da46c (patch) | |
tree | 0fd9761ba12f5f58a3435e9b3bc5a285d552f0c4 /drivers/regulator/max8660.c | |
parent | a2e28fc1164e56d37a56e3c53bd3e5a64462fd02 (diff) | |
parent | 1ad02bbce64e5226b0582af85df4e481e2f6b7b9 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6: (27 commits)
Regulators: wm8400 - cleanup platform driver data handling
Regulators: wm8994 - clean up driver data after removal
Regulators: wm831x-xxx - clean up driver data after removal
Regulators: pcap-regulator - clean up driver data after removal
Regulators: max8660 - annotate probe and remove methods
Regulators: max1586 - annotate probe and remove methods
Regulators: lp3971 - fail if platform data was not supplied
Regulators: tps6507x-regulator - mark probe method as __devinit
Regulators: tps65023-regulator - mark probe method as __devinit
Regulators: twl-regulator - mark probe function as __devinit
Regulators: fixed - annotate probe and remove methods
Regulators: ab3100 - fix probe and remove annotations
Regulators: virtual - use sysfs attribute groups
twl6030: regulator: Configure STATE register instead of REMAP
regulator: Provide optional dummy regulator for consumers
regulator: Assume regulators are enabled if they don't report anything
regulator: Convert fixed voltage regulator to use enable_time()
regulator: Add WM8994 regulator support
regulator: enable max8649 regulator driver
regulator: trivial: fix typos in user-visible Kconfig text
...
Diffstat (limited to 'drivers/regulator/max8660.c')
-rw-r--r-- | drivers/regulator/max8660.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c index acc2fb7b6087..f12f1bb62138 100644 --- a/drivers/regulator/max8660.c +++ b/drivers/regulator/max8660.c | |||
@@ -345,8 +345,8 @@ static struct regulator_desc max8660_reg[] = { | |||
345 | }, | 345 | }, |
346 | }; | 346 | }; |
347 | 347 | ||
348 | static int max8660_probe(struct i2c_client *client, | 348 | static int __devinit max8660_probe(struct i2c_client *client, |
349 | const struct i2c_device_id *i2c_id) | 349 | const struct i2c_device_id *i2c_id) |
350 | { | 350 | { |
351 | struct regulator_dev **rdev; | 351 | struct regulator_dev **rdev; |
352 | struct max8660_platform_data *pdata = client->dev.platform_data; | 352 | struct max8660_platform_data *pdata = client->dev.platform_data; |
@@ -354,7 +354,7 @@ static int max8660_probe(struct i2c_client *client, | |||
354 | int boot_on, i, id, ret = -EINVAL; | 354 | int boot_on, i, id, ret = -EINVAL; |
355 | 355 | ||
356 | if (pdata->num_subdevs > MAX8660_V_END) { | 356 | 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"); |
358 | goto out; | 358 | goto out; |
359 | } | 359 | } |
360 | 360 | ||
@@ -462,7 +462,7 @@ out: | |||
462 | return ret; | 462 | return ret; |
463 | } | 463 | } |
464 | 464 | ||
465 | static int max8660_remove(struct i2c_client *client) | 465 | static int __devexit max8660_remove(struct i2c_client *client) |
466 | { | 466 | { |
467 | struct regulator_dev **rdev = i2c_get_clientdata(client); | 467 | struct regulator_dev **rdev = i2c_get_clientdata(client); |
468 | int i; | 468 | int i; |
@@ -485,9 +485,10 @@ MODULE_DEVICE_TABLE(i2c, max8660_id); | |||
485 | 485 | ||
486 | static struct i2c_driver max8660_driver = { | 486 | static struct i2c_driver max8660_driver = { |
487 | .probe = max8660_probe, | 487 | .probe = max8660_probe, |
488 | .remove = max8660_remove, | 488 | .remove = __devexit_p(max8660_remove), |
489 | .driver = { | 489 | .driver = { |
490 | .name = "max8660", | 490 | .name = "max8660", |
491 | .owner = THIS_MODULE, | ||
491 | }, | 492 | }, |
492 | .id_table = max8660_id, | 493 | .id_table = max8660_id, |
493 | }; | 494 | }; |