summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-hid-sensor-time.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-01-17 01:49:00 +0000
committerJonathan Cameron <jic23@kernel.org>2013-01-26 10:07:52 +0000
commitb775dce99621af52d32c1d7335cf94eee4383e8a (patch)
treec702fbd6d1502f145659166de0cf16f5a20f9d3f /drivers/rtc/rtc-hid-sensor-time.c
parentdf2e8f78e7fe749332f82dcba6438fc2b3016a96 (diff)
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>
Diffstat (limited to 'drivers/rtc/rtc-hid-sensor-time.c')
-rw-r--r--drivers/rtc/rtc-hid-sensor-time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-hid-sensor-time.c b/drivers/rtc/rtc-hid-sensor-time.c
index 0438c9ee9a3..31c5728ef62 100644
--- a/drivers/rtc/rtc-hid-sensor-time.c
+++ b/drivers/rtc/rtc-hid-sensor-time.c
@@ -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;