diff options
-rw-r--r-- | drivers/clocksource/timer-stm32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c index e5cdc3af684c..2717f88c7904 100644 --- a/drivers/clocksource/timer-stm32.c +++ b/drivers/clocksource/timer-stm32.c | |||
@@ -304,8 +304,10 @@ static int __init stm32_timer_init(struct device_node *node) | |||
304 | 304 | ||
305 | to->private_data = kzalloc(sizeof(struct stm32_timer_private), | 305 | to->private_data = kzalloc(sizeof(struct stm32_timer_private), |
306 | GFP_KERNEL); | 306 | GFP_KERNEL); |
307 | if (!to->private_data) | 307 | if (!to->private_data) { |
308 | ret = -ENOMEM; | ||
308 | goto deinit; | 309 | goto deinit; |
310 | } | ||
309 | 311 | ||
310 | rstc = of_reset_control_get(node, NULL); | 312 | rstc = of_reset_control_get(node, NULL); |
311 | if (!IS_ERR(rstc)) { | 313 | if (!IS_ERR(rstc)) { |