Thread (12 messages) 12 messages, 2 authors, 2014-05-05

Re: [PATCH v3 1/7] Input: pixcir_i2c_ts: Use devres managed resource allocations

From: Roger Quadros <hidden>
Date: 2014-05-05 08:44:18
Also in: linux-devicetree, lkml

On 04/30/2014 07:30 PM, Dmitry Torokhov wrote:
Hi Roger,

On Wed, Apr 30, 2014 at 03:36:26PM +0300, Roger Quadros wrote:
quoted
 static int pixcir_i2c_ts_remove(struct i2c_client *client)
@@ -198,10 +194,8 @@ static int pixcir_i2c_ts_remove(struct i2c_client *client)
 
 	tsdata->exiting = true;
 	mb();
-	free_irq(client->irq, tsdata);
 
 	input_unregister_device(tsdata->input);
There is no need to call input_unregister_device for managed input
devices.
OK. I'll remove that.
quoted
-	kfree(tsdata);
 
 	return 0;
 }
cheers,
-roger
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help