diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-11-30 20:07:04 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-10 05:40:00 -0500 |
commit | c80892d150a872b18cedfbf789211bfbebfc67ce (patch) | |
tree | 8866c07d324e2a147d637056be296f195335eec5 /arch/sparc/mm | |
parent | a2c1e064c45f5126625121f58afa423e13c55efc (diff) |
[SPARC]: Replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc
Signed-off-by: Yan Burman <burman.yan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm')
-rw-r--r-- | arch/sparc/mm/io-unit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/mm/io-unit.c b/arch/sparc/mm/io-unit.c index 2bb1309003dd..007062022967 100644 --- a/arch/sparc/mm/io-unit.c +++ b/arch/sparc/mm/io-unit.c | |||
@@ -41,9 +41,8 @@ iounit_init(int sbi_node, int io_node, struct sbus_bus *sbus) | |||
41 | struct linux_prom_registers iommu_promregs[PROMREG_MAX]; | 41 | struct linux_prom_registers iommu_promregs[PROMREG_MAX]; |
42 | struct resource r; | 42 | struct resource r; |
43 | 43 | ||
44 | iounit = kmalloc(sizeof(struct iounit_struct), GFP_ATOMIC); | 44 | iounit = kzalloc(sizeof(struct iounit_struct), GFP_ATOMIC); |
45 | 45 | ||
46 | memset(iounit, 0, sizeof(*iounit)); | ||
47 | iounit->limit[0] = IOUNIT_BMAP1_START; | 46 | iounit->limit[0] = IOUNIT_BMAP1_START; |
48 | iounit->limit[1] = IOUNIT_BMAP2_START; | 47 | iounit->limit[1] = IOUNIT_BMAP2_START; |
49 | iounit->limit[2] = IOUNIT_BMAPM_START; | 48 | iounit->limit[2] = IOUNIT_BMAPM_START; |