[PATCH] s3c24xx-adc: resume convertions interrupted by going to suspend

Nelson Castillo arhuaco at freaks-unidos.net
Sat Oct 24 02:59:25 EDT 2009


On Thu, Oct 22, 2009 at 6:10 AM, Vasily Khoruzhick <anarsoul at gmail.com> wrote:
> В сообщении от 20 октября 2009 17:19:30 автор Vasily Khoruzhick написал:
>> Fix for a bug that shows when the s3c2410 TS driver requests
>> a conversion from the s3c-adc driver and the machine goes into suspend.
>> In this case the touchscreen stops working.

>@@ -224,6 +225,7 @@ struct s3c_adc_client *s3c_adc_register(struct platform_device *pdev,

> 	client->is_ts = is_ts;

> 	client->select_cb = select;

> 	client->convert_cb = conv;

>+	client->selected = 0;

You don't need to clear client->selected. kzalloc takes care of this.



More information about the linux-arm-kernel mailing list