aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/sh_mtu2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/sh_mtu2.c')
-rw-r--r--drivers/clocksource/sh_mtu2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c
index 53aa7e92a7d7..6812e099b6a3 100644
--- a/drivers/clocksource/sh_mtu2.c
+++ b/drivers/clocksource/sh_mtu2.c
@@ -418,7 +418,7 @@ static int sh_mtu2_setup(struct sh_mtu2_device *mtu,
418 /* Allocate and setup the channels. */ 418 /* Allocate and setup the channels. */
419 mtu->num_channels = 3; 419 mtu->num_channels = 3;
420 420
421 mtu->channels = kzalloc(sizeof(*mtu->channels) * mtu->num_channels, 421 mtu->channels = kcalloc(mtu->num_channels, sizeof(*mtu->channels),
422 GFP_KERNEL); 422 GFP_KERNEL);
423 if (mtu->channels == NULL) { 423 if (mtu->channels == NULL) {
424 ret = -ENOMEM; 424 ret = -ENOMEM;