diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/rtc-sun6i.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c index 39cbc1238b92..7e7da604682b 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)); |