mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
rtc: hid-sensor-time: Add missing spin_lock_init
Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Alexander Holler <holler@ahsoftware.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
df2e8f78e7
commit
b775dce996
@ -225,6 +225,7 @@ static int hid_time_probe(struct platform_device *pdev)
|
||||
|
||||
platform_set_drvdata(pdev, time_state);
|
||||
|
||||
spin_lock_init(&time_state->lock_last_time);
|
||||
init_completion(&time_state->comp_last_time);
|
||||
time_state->common_attributes.hsdev = hsdev;
|
||||
time_state->common_attributes.pdev = pdev;
|
||||
|
Loading…
Reference in New Issue
Block a user