git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
mtd
/
maps
/
omap_nor.c
diff --git
a/drivers/mtd/maps/omap_nor.c
b/drivers/mtd/maps/omap_nor.c
index
418afff
..
e8d9ae5
100644
(file)
--- a/
drivers/mtd/maps/omap_nor.c
+++ b/
drivers/mtd/maps/omap_nor.c
@@
-78,12
+78,10
@@
static int __devinit omapflash_probe(struct platform_device *pdev)
struct resource *res = pdev->resource;
unsigned long size = res->end - res->start + 1;
struct resource *res = pdev->resource;
unsigned long size = res->end - res->start + 1;
- info = k
m
alloc(sizeof(struct omapflash_info), GFP_KERNEL);
+ info = k
z
alloc(sizeof(struct omapflash_info), GFP_KERNEL);
if (!info)
return -ENOMEM;
if (!info)
return -ENOMEM;
- memset(info, 0, sizeof(struct omapflash_info));
-
if (!request_mem_region(res->start, size, "flash")) {
err = -EBUSY;
goto out_free_info;
if (!request_mem_region(res->start, size, "flash")) {
err = -EBUSY;
goto out_free_info;