mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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: Alexey Klimov <[email protected]>
Reviewed-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
11909f0be7
commit
319ff835d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue