diff options
author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-01-31 12:24:00 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-01-31 12:24:00 -0500 |
commit | 30716e07ef511ec7525c07eb1e8060ba8943c2a2 (patch) | |
tree | eb6a47cae63d3587fa773cc5a16781eaa2c7810b /arch/ppc/platforms/ev64360.c | |
parent | 03c79cc56e4497cbd09d74a73c1bd0d1d9a8a16c (diff) | |
parent | f56df2f4db6e4af87fb8e941cff69f4501a111df (diff) |
Merge branch 'linus'
Diffstat (limited to 'arch/ppc/platforms/ev64360.c')
-rw-r--r-- | arch/ppc/platforms/ev64360.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ppc/platforms/ev64360.c b/arch/ppc/platforms/ev64360.c index 90ed375c9b90..f87e06f6bab9 100644 --- a/arch/ppc/platforms/ev64360.c +++ b/arch/ppc/platforms/ev64360.c | |||
@@ -358,13 +358,12 @@ ev64360_setup_mtd(void) | |||
358 | 358 | ||
359 | ptbl_entries = 3; | 359 | ptbl_entries = 3; |
360 | 360 | ||
361 | if ((ptbl = kmalloc(ptbl_entries * sizeof(struct mtd_partition), | 361 | if ((ptbl = kzalloc(ptbl_entries * sizeof(struct mtd_partition), |
362 | GFP_KERNEL)) == NULL) { | 362 | GFP_KERNEL)) == NULL) { |
363 | 363 | ||
364 | printk(KERN_WARNING "Can't alloc MTD partition table\n"); | 364 | printk(KERN_WARNING "Can't alloc MTD partition table\n"); |
365 | return -ENOMEM; | 365 | return -ENOMEM; |
366 | } | 366 | } |
367 | memset(ptbl, 0, ptbl_entries * sizeof(struct mtd_partition)); | ||
368 | 367 | ||
369 | ptbl[0].name = "reserved"; | 368 | ptbl[0].name = "reserved"; |
370 | ptbl[0].offset = 0; | 369 | ptbl[0].offset = 0; |