projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df2e8f7
)
rtc: hid-sensor-time: Add missing spin_lock_init
author
Axel Lin
<axel.lin@ingics.com>
Thu, 17 Jan 2013 01:49:00 +0000
(
01:49
+0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 26 Jan 2013 10:07:52 +0000
(10:07 +0000)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/rtc/rtc-hid-sensor-time.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/rtc/rtc-hid-sensor-time.c
b/drivers/rtc/rtc-hid-sensor-time.c
index 0438c9ee9a3b49a15c9266560388038184e330b2..31c5728ef629c487a2f21044888fcd4e160f51ee 100644
(file)
--- 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;