mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] rtc: sun6i: Remove double init of spinlock in sun6i_rtc_clk_init()
@ 2017-07-12 10:59 Alexey Klimov
  2017-07-12 10:59 ` [PATCH 2/3] rtc: sun6i: fix memleaks and add error-path " Alexey Klimov
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Alexey Klimov @ 2017-07-12 10:59 UTC (permalink / raw)
  To: linux-rtc
  Cc: a.zummo, linux-kernel, alexandre.belloni, alexey.klimov,
	maxime.ripard, wens, robh

Fixes: 847b8bf62eb4 ("rtc: sun6i: Expose the 32kHz oscillator")
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Alexey Klimov <alexey.klimov@arm.com>
---
 drivers/rtc/rtc-sun6i.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c
index 39cbc12..7e7da60 100644
--- a/drivers/rtc/rtc-sun6i.c
+++ b/drivers/rtc/rtc-sun6i.c
@@ -193,12 +193,12 @@ static void __init sun6i_rtc_clk_init(struct device_node *node)
 	rtc = kzalloc(sizeof(*rtc), GFP_KERNEL);
 	if (!rtc)
 		return;
-	spin_lock_init(&rtc->lock);
 
 	clk_data = kzalloc(sizeof(*clk_data) + sizeof(*clk_data->hws),
 			   GFP_KERNEL);
 	if (!clk_data)
 		return;
+
 	spin_lock_init(&rtc->lock);
 
 	rtc->base = of_io_request_and_map(node, 0, of_node_full_name(node));
-- 
1.9.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-30 14:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-12 10:59 [PATCH 1/3] rtc: sun6i: Remove double init of spinlock in sun6i_rtc_clk_init() Alexey Klimov
2017-07-12 10:59 ` [PATCH 2/3] rtc: sun6i: fix memleaks and add error-path " Alexey Klimov
2017-07-24  3:22   ` Chen-Yu Tsai
2017-07-12 10:59 ` [PATCH 3/3] rtc: sun6i: Remove unneeded initalization of ret in sun6i_rtc_setalarm() Alexey Klimov
2017-07-24  3:23   ` Chen-Yu Tsai
2017-07-30 14:41   ` Alexandre Belloni
2017-07-24  3:24 ` [PATCH 1/3] rtc: sun6i: Remove double init of spinlock in sun6i_rtc_clk_init() Chen-Yu Tsai
2017-07-30 14:40 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®