Skip to content

Commit

Permalink
rtc: hid-sensor-time: Add missing spin_lock_init
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Axel Lin authored and Jonathan Cameron committed Jan 26, 2013
1 parent df2e8f7 commit b775dce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/rtc-hid-sensor-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b775dce

Please sign in to comment.