From patchwork Thu Jan 17 01:49:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: rtc: hid-sensor-time: Add missing spin_lock_init Date: Wed, 16 Jan 2013 15:49:49 -0000 From: Axel Lin X-Patchwork-Id: 213120 Message-Id: <1358387389.17958.1.camel@phoenix> To: Jonathan Cameron , Alessandro Zummo Cc: Alexander Holler , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Signed-off-by: Axel Lin Acked-by: Alexander Holler --- drivers/rtc/rtc-hid-sensor-time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-hid-sensor-time.c b/drivers/rtc/rtc-hid-sensor-time.c index 0438c9e..31c5728 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;