Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22936
b: refs/heads/master
c: d116fe5
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sesterhenn authored and Paul Mackerras committed Mar 17, 2006
1 parent 4f61f34 commit 180120b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f6be7b77ceaea01a35b37fab26f4ea3b01efe14
refs/heads/master: d116fe5aeafd8226712d2de9c69428725ca74474
3 changes: 1 addition & 2 deletions trunk/arch/ppc/4xx_io/serial_sicc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,9 +1637,8 @@ static struct SICC_info *siccuart_get(int line)
state->count++;
if (state->info)
return state->info;
info = kmalloc(sizeof(struct SICC_info), GFP_KERNEL);
info = kzalloc(sizeof(struct SICC_info), GFP_KERNEL);
if (info) {
memset(info, 0, sizeof(struct SICC_info));
init_waitqueue_head(&info->open_wait);
init_waitqueue_head(&info->close_wait);
init_waitqueue_head(&info->delta_msr_wait);
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/ppc/kernel/smp-tbsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ smp_generic_give_timebase( void )
printk("Synchronizing timebase\n");

/* if this fails then this kernel won't work anyway... */
tbsync = kmalloc( sizeof(*tbsync), GFP_KERNEL );
memset( tbsync, 0, sizeof(*tbsync) );
tbsync = kzalloc( sizeof(*tbsync), GFP_KERNEL );
mb();
running = 1;

Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/ppc/platforms/katana.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,11 @@ katana_setup_mtd(void)

ptbl_entries = (size >= (64*MB)) ? 6 : 4;

if ((ptbl = kmalloc(ptbl_entries * sizeof(struct mtd_partition),
if ((ptbl = kcalloc(ptbl_entries, sizeof(struct mtd_partition),
GFP_KERNEL)) == NULL) {
printk(KERN_WARNING "Can't alloc MTD partition table\n");
return -ENOMEM;
}
memset(ptbl, 0, ptbl_entries * sizeof(struct mtd_partition));

ptbl[0].name = "Monitor";
ptbl[0].size = KATANA_MTD_MONITOR_SIZE;
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/ppc/platforms/radstone_ppc7d.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,11 +683,10 @@ ppc7d_fixup_i2c_pdata(struct platform_device *pdev)

pdata = pdev->dev.platform_data;
if (pdata == NULL) {
pdata = kmalloc(sizeof(*pdata), GFP_KERNEL);
pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
if (pdata == NULL)
return;

memset(pdata, 0, sizeof(*pdata));
pdev->dev.platform_data = pdata;
}

Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/ppc/syslib/ocp.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,9 @@ ocp_driver_init(void)
DBG(("ocp: ocp_driver_init()...\n"));

/* Allocate/register primary OCP bus */
ocp_bus = kmalloc(sizeof(struct device), GFP_KERNEL);
ocp_bus = kzalloc(sizeof(struct device), GFP_KERNEL);
if (ocp_bus == NULL)
return 1;
memset(ocp_bus, 0, sizeof(struct device));
strcpy(ocp_bus->bus_id, "ocp");

bus_register(&ocp_bus_type);
Expand Down

0 comments on commit 180120b

Please sign in to comment.