aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMattias Wallin <mattias.wallin@stericsson.com>2010-06-23 10:45:47 +0200
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:45:47 -0600
commit0282d8a180e1c89e8bf1b9fdce90ebecee1e19a5 (patch)
treeffc55f375c411c79d150062b7d9a6d718fe48fb7 /drivers
parentf91262279263c4ae77ef798030e7ccee3a854aa6 (diff)
abx500 kmalloc and doc bugfix
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/1835 Tested-by: Mattias WALLIN <mattias.wallin@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Change-Id: I9de57eec90220bfbfc6f278dc7899ebc01a08d1f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/2636 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/abx500-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/abx500-core.c b/drivers/mfd/abx500-core.c
index 22d02fe4e45..8f7b71d0ca8 100644
--- a/drivers/mfd/abx500-core.c
+++ b/drivers/mfd/abx500-core.c
@@ -36,7 +36,7 @@ int abx500_register_ops(struct device *dev, struct abx500_ops *ops)
struct abx500_device_entry *dev_entry;
dev_entry = kmalloc(sizeof(struct abx500_device_entry), GFP_KERNEL);
- if (dev_entry) {
+ if (!dev_entry) {
dev_err(dev, "register_ops kzalloc failed");
return -ENOMEM;
}