Commit 319ff835 authored by Alexey Klimov's avatar Alexey Klimov Committed by Alexandre Belloni

rtc: sun6i: Remove double init of spinlock in sun6i_rtc_clk_init()

Remove double init of spinlock in sun6i_rtc_clk_init()

Fixes: 847b8bf62eb4 ("rtc: sun6i: Expose the 32kHz oscillator")
Signed-off-by: default avatarAlexey Klimov <alexey.klimov@arm.com>
Reviewed-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 11909f0b
...@@ -193,12 +193,12 @@ static void __init sun6i_rtc_clk_init(struct device_node *node) ...@@ -193,12 +193,12 @@ static void __init sun6i_rtc_clk_init(struct device_node *node)
rtc = kzalloc(sizeof(*rtc), GFP_KERNEL); rtc = kzalloc(sizeof(*rtc), GFP_KERNEL);
if (!rtc) if (!rtc)
return; return;
spin_lock_init(&rtc->lock);
clk_data = kzalloc(sizeof(*clk_data) + sizeof(*clk_data->hws), clk_data = kzalloc(sizeof(*clk_data) + sizeof(*clk_data->hws),
GFP_KERNEL); GFP_KERNEL);
if (!clk_data) if (!clk_data)
return; return;
spin_lock_init(&rtc->lock); spin_lock_init(&rtc->lock);
rtc->base = of_io_request_and_map(node, 0, of_node_full_name(node)); rtc->base = of_io_request_and_map(node, 0, of_node_full_name(node));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment