]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/mfd/abx500-core.c
mfd: kzalloc doesn't return ERR_PTR
[net-next-2.6.git] / drivers / mfd / abx500-core.c
index 3b3b97ec32a764936ca1a8123287cb3c01397752..f12720dbe1262a5a78ce99154c0ca8549552c448 100644 (file)
@@ -36,7 +36,7 @@ int abx500_register_ops(struct device *dev, struct abx500_ops *ops)
        struct abx500_device_entry *dev_entry;
 
        dev_entry = kzalloc(sizeof(struct abx500_device_entry), GFP_KERNEL);
-       if (IS_ERR(dev_entry)) {
+       if (!dev_entry) {
                dev_err(dev, "register_ops kzalloc failed");
                return -ENOMEM;
        }