projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
clocksource/drivers/stm32: Fix error return code
[linux-2.6-block.git]
/
drivers
/
clocksource
/
timer-stm32.c
diff --git
a/drivers/clocksource/timer-stm32.c
b/drivers/clocksource/timer-stm32.c
index e5cdc3af684cbbe2370406c79af63df143776cd3..2717f88c79040a1ec26e2dd0d01f5d2dd25d9734 100644
(file)
--- 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)
to->private_data = kzalloc(sizeof(struct stm32_timer_private),
GFP_KERNEL);
- if (!to->private_data)
+ if (!to->private_data) {
+ ret = -ENOMEM;
goto deinit;
+ }
rstc = of_reset_control_get(node, NULL);
if (!IS_ERR(rstc)) {