diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-01-16 20:49:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-01-26 05:07:52 -0500 |
commit | b775dce99621af52d32c1d7335cf94eee4383e8a (patch) | |
tree | c702fbd6d1502f145659166de0cf16f5a20f9d3f /drivers/rtc/rtc-hid-sensor-time.c | |
parent | df2e8f78e7fe749332f82dcba6438fc2b3016a96 (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.c | 1 |
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 0438c9ee9a3b..31c5728ef629 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) | |||
225 | 225 | ||
226 | platform_set_drvdata(pdev, time_state); | 226 | platform_set_drvdata(pdev, time_state); |
227 | 227 | ||
228 | spin_lock_init(&time_state->lock_last_time); | ||
228 | init_completion(&time_state->comp_last_time); | 229 | init_completion(&time_state->comp_last_time); |
229 | time_state->common_attributes.hsdev = hsdev; | 230 | time_state->common_attributes.hsdev = hsdev; |
230 | time_state->common_attributes.pdev = pdev; | 231 | time_state->common_attributes.pdev = pdev; |