aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/alchemy/common/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/alchemy/common/platform.c')
-rw-r--r--arch/mips/alchemy/common/platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/alchemy/common/platform.c b/arch/mips/alchemy/common/platform.c
index d77a64f4c78b..1454d9f6ab2d 100644
--- a/arch/mips/alchemy/common/platform.c
+++ b/arch/mips/alchemy/common/platform.c
@@ -115,7 +115,7 @@ static void __init alchemy_setup_uarts(int ctype)
115 uartclk = clk_get_rate(clk); 115 uartclk = clk_get_rate(clk);
116 clk_put(clk); 116 clk_put(clk);
117 117
118 ports = kzalloc(s * (c + 1), GFP_KERNEL); 118 ports = kcalloc(s, (c + 1), GFP_KERNEL);
119 if (!ports) { 119 if (!ports) {
120 printk(KERN_INFO "Alchemy: no memory for UART data\n"); 120 printk(KERN_INFO "Alchemy: no memory for UART data\n");
121 return; 121 return;
@@ -198,7 +198,7 @@ static unsigned long alchemy_ehci_data[][2] __initdata = {
198 198
199static int __init _new_usbres(struct resource **r, struct platform_device **d) 199static int __init _new_usbres(struct resource **r, struct platform_device **d)
200{ 200{
201 *r = kzalloc(sizeof(struct resource) * 2, GFP_KERNEL); 201 *r = kcalloc(2, sizeof(struct resource), GFP_KERNEL);
202 if (!*r) 202 if (!*r)
203 return -ENOMEM; 203 return -ENOMEM;
204 *d = kzalloc(sizeof(struct platform_device), GFP_KERNEL); 204 *d = kzalloc(sizeof(struct platform_device), GFP_KERNEL);