git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mfd: Fix egpio kzalloc return test
[pandora-kernel.git]
/
drivers
/
mfd
/
htc-egpio.c
diff --git
a/drivers/mfd/htc-egpio.c
b/drivers/mfd/htc-egpio.c
index
1a4d046
..
194df7b
100644
(file)
--- a/
drivers/mfd/htc-egpio.c
+++ b/
drivers/mfd/htc-egpio.c
@@
-307,7
+307,7
@@
static int __init egpio_probe(struct platform_device *pdev)
ei->nchips = pdata->num_chips;
ei->chip = kzalloc(sizeof(struct egpio_chip) * ei->nchips, GFP_KERNEL);
- if (!ei) {
+ if (!ei
->chip
) {
ret = -ENOMEM;
goto fail;
}