From 3a5a09b95c0336e1c4407cca5f00661a25f8ea58 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 17 Jan 2013 01:49:00 +0000 Subject: [PATCH] --- yaml --- r: 354209 b: refs/heads/master c: b775dce99621af52d32c1d7335cf94eee4383e8a h: refs/heads/master i: 354207: bcdbc1c0727d565eda60da71788c977acbe21986 v: v3 --- [refs] | 2 +- trunk/drivers/rtc/rtc-hid-sensor-time.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 7484897bb715..4674655e4835 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: df2e8f78e7fe749332f82dcba6438fc2b3016a96 +refs/heads/master: b775dce99621af52d32c1d7335cf94eee4383e8a diff --git a/trunk/drivers/rtc/rtc-hid-sensor-time.c b/trunk/drivers/rtc/rtc-hid-sensor-time.c index 0438c9ee9a3b..31c5728ef629 100644 --- a/trunk/drivers/rtc/rtc-hid-sensor-time.c +++ b/trunk/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;