lkml.org 
[lkml]   [2013]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] rtc: hid-sensor-time: Add missing spin_lock_init
On 01/17/2013 12:47 PM, Alexander Holler wrote:
> Am 17.01.2013 02:49, schrieb Axel Lin:
>
> Thanks, yes, I missed it the initialization of the spinlock.
>
> Below is my ack.
>
> Regards,
>
> Alexander
>
>> Signed-off-by: Axel Lin <axel.lin@ingics.com>
>
> Acked-by: Alexander Holler <holler@ahsoftware.de>
Applied to togreg branch of iio.git.

Thanks,
>
>> ---
>> 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;
>>
>


\
 
 \ /
  Last update: 2013-01-20 13:41    [W:0.066 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site