Skip to contentSkip to conversation

omap_hdq: fix usecount handling

PATCH Superseded Andreas Kemnade 1 participant 1 message Jan 4, 2016 W1 dallas's 1-wire bus

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap_hdq: fix usecount handling

hdq_usecount was set to zero after a successful read, so omap_hdq_put could not properly free resources which leads e.g. to increasing usecounts in lsmod output

---
 drivers/w1/masters/omap_hdq.c | 1 -
 1 file changed, 1 deletion(-)
drivers/w1/masters/omap_hdq.c +0 -1
index 0e2f43b..a2eec97 100644
@@ -618,7 +618,6 @@ static u8 omap_w1_read_byte(void *_hdq)
 
 	hdq_disable_interrupt(hdq_data, OMAP_HDQ_CTRL_STATUS,
 			      ~OMAP_HDQ_CTRL_STATUS_INTERRUPTMASK);
-	hdq_data->hdq_usecount = 0;
 
 	/* Write followed by a read, release the module */
 	if (hdq_data->init_trans) {
Signature · 1 line
2.1.4