diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-01-17 05:49:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-01-26 14:07:52 +0400 |
commit | b775dce99621af52d32c1d7335cf94eee4383e8a (patch) | |
tree | c702fbd6d1502f145659166de0cf16f5a20f9d3f /drivers/rtc/rtc-hid-sensor-time.c | |
parent | df2e8f78e7fe749332f82dcba6438fc2b3016a96 (diff) | |
download | linux-b775dce99621af52d32c1d7335cf94eee4383e8a.tar.xz |
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) 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; |