summaryrefslogtreecommitdiff
path: root/drivers/clocksource/timer-stm32.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/timer-stm32.c')
-rw-r--r--drivers/clocksource/timer-stm32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c
index 4a0f06a419d7..fee65914f99a 100644
--- a/drivers/clocksource/timer-stm32.c
+++ b/drivers/clocksource/timer-stm32.c
@@ -291,7 +291,7 @@ static int __init stm32_timer_init(struct device_node *node)
struct timer_of *to;
int ret;
- to = kzalloc_obj(*to, GFP_KERNEL);
+ to = kzalloc_obj(*to);
if (!to)
return -ENOMEM;
@@ -302,7 +302,7 @@ static int __init stm32_timer_init(struct device_node *node)
if (ret)
goto err;
- to->private_data = kzalloc_obj(struct stm32_timer_private, GFP_KERNEL);
+ to->private_data = kzalloc_obj(struct stm32_timer_private);
if (!to->private_data) {
ret = -ENOMEM;
goto deinit;