Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b46a105 authored by Andreas Kemnade's avatar Andreas Kemnade Committed by Greg Kroah-Hartman
Browse files

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: default avatarAndreas Kemnade <andreas@kemnade.info>
Acked-by: default avatarEvgeniy Polyakov <zbr@ioremap.net>
Reviewed-by: default avatarVignesh R <vigneshr@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6908b45e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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) {