omap_hdq: fix usecount handling
authorAndreas Kemnade <andreas@kemnade.info>
Mon, 4 Jan 2016 15:57:28 +0000 (16:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 22:57:30 +0000 (14:57 -0800)
commit7b46a105dbb7b67ea1f2f63a0b3ec29ab64e1bd3
treeb746524e0004a706aa278679611fc744ad24e00a
parent6908b45eafc480e9da8196f987b1d0f6c887a5d7
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>
drivers/w1/masters/omap_hdq.c