Skip to content

Commit

Permalink
omap_hdq: fix usecount handling
Browse files Browse the repository at this point in the history
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

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Reviewed-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Andreas Kemnade authored and Greg Kroah-Hartman committed Feb 8, 2016
1 parent 6908b45 commit 7b46a10
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/w1/masters/omap_hdq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7b46a10

Please sign in to comment.