From: Axel Lin Date: Thu, 17 Jan 2013 01:49:00 +0000 (+0000) Subject: rtc: hid-sensor-time: Add missing spin_lock_init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b775dce99621af52d32c1d7335cf94eee4383e8a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rtc: hid-sensor-time: Add missing spin_lock_init Signed-off-by: Axel Lin Acked-by: Alexander Holler Signed-off-by: Jonathan Cameron --- 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;