diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-29 01:44:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-29 01:44:53 -0500 |
commit | 6abb7c25775b7fb2225ad0508236d63ca710e65f (patch) | |
tree | ae0f46f7e186d99f17aba6f2805dafdc481e8bed /drivers | |
parent | fc16e884a2320198b8cb7bc2fdcf6b4485e79709 (diff) | |
parent | 51b919bae5ea1a14083c54f494f68b6bee737716 (diff) |
Merge tag 'regulator-3.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown:
"Fairly small stuff - a build failure fix for ST platforms, an error
checking fix and an update to the MAINTAINERS file for Liam."
* tag 'regulator-3.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
regulator: tps80031: Use IS_ERR to check return value of regulator_register()
regulators: db8500: Fix compile failure for drivers/regulator/dbx500-prcmu.c
regulator: MAINTAINERS: update email address
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/dbx500-prcmu.c | 1 | ||||
-rw-r--r-- | drivers/regulator/tps80031-regulator.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c index 261f3d2299bc..89bd2faaef8c 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/debugfs.h> | 14 | #include <linux/debugfs.h> |
15 | #include <linux/seq_file.h> | 15 | #include <linux/seq_file.h> |
16 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
17 | #include <linux/module.h> | ||
17 | 18 | ||
18 | #include "dbx500-prcmu.h" | 19 | #include "dbx500-prcmu.h" |
19 | 20 | ||
diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c index b15d711bc8c6..9019d0e7ecb6 100644 --- a/drivers/regulator/tps80031-regulator.c +++ b/drivers/regulator/tps80031-regulator.c | |||
@@ -728,7 +728,7 @@ static int tps80031_regulator_probe(struct platform_device *pdev) | |||
728 | } | 728 | } |
729 | } | 729 | } |
730 | rdev = regulator_register(&ri->rinfo->desc, &config); | 730 | rdev = regulator_register(&ri->rinfo->desc, &config); |
731 | if (IS_ERR_OR_NULL(rdev)) { | 731 | if (IS_ERR(rdev)) { |
732 | dev_err(&pdev->dev, | 732 | dev_err(&pdev->dev, |
733 | "register regulator failed %s\n", | 733 | "register regulator failed %s\n", |
734 | ri->rinfo->desc.name); | 734 | ri->rinfo->desc.name); |