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
drivers/mtd: Use kzalloc
[pandora-kernel.git]
/
drivers
/
mtd
/
maps
/
ixp2000.c
diff --git
a/drivers/mtd/maps/ixp2000.c
b/drivers/mtd/maps/ixp2000.c
index
1bdf0ee
..
9639d83
100644
(file)
--- a/
drivers/mtd/maps/ixp2000.c
+++ b/
drivers/mtd/maps/ixp2000.c
@@
-165,12
+165,11
@@
static int ixp2000_flash_probe(struct platform_device *dev)
return -EIO;
}
return -EIO;
}
- info = k
m
alloc(sizeof(struct ixp2000_flash_info), GFP_KERNEL);
+ info = k
z
alloc(sizeof(struct ixp2000_flash_info), GFP_KERNEL);
if(!info) {
err = -ENOMEM;
goto Error;
}
if(!info) {
err = -ENOMEM;
goto Error;
}
- memset(info, 0, sizeof(struct ixp2000_flash_info));
platform_set_drvdata(dev, info);
platform_set_drvdata(dev, info);