diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-29 06:44:53 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-29 06:44:53 (GMT) |
commit | 6abb7c25775b7fb2225ad0508236d63ca710e65f (patch) | |
tree | ae0f46f7e186d99f17aba6f2805dafdc481e8bed /drivers | |
parent | fc16e884a2320198b8cb7bc2fdcf6b4485e79709 (diff) | |
parent | 51b919bae5ea1a14083c54f494f68b6bee737716 (diff) | |
download | linux-fsl-qoriq-6abb7c25775b7fb2225ad0508236d63ca710e65f.tar.xz |
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 261f3d2..89bd2fa 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c @@ -14,6 +14,7 @@ #include <linux/debugfs.h> #include <linux/seq_file.h> #include <linux/slab.h> +#include <linux/module.h> #include "dbx500-prcmu.h" diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c index b15d711..9019d0e 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) } } rdev = regulator_register(&ri->rinfo->desc, &config); - if (IS_ERR_OR_NULL(rdev)) { + if (IS_ERR(rdev)) { dev_err(&pdev->dev, "register regulator failed %s\n", ri->rinfo->desc.name); |