Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>

authored by

Andreas Kemnade and committed by
Greg Kroah-Hartman
7b46a105 6908b45e

-1
-1
drivers/w1/masters/omap_hdq.c
··· 618 618 619 619 hdq_disable_interrupt(hdq_data, OMAP_HDQ_CTRL_STATUS, 620 620 ~OMAP_HDQ_CTRL_STATUS_INTERRUPTMASK); 621 - hdq_data->hdq_usecount = 0; 622 621 623 622 /* Write followed by a read, release the module */ 624 623 if (hdq_data->init_trans) {