windfarm: decrement client count when unregistering
authorPaul Bolle <pebolle@tiscali.nl>
Fri, 31 Jul 2015 12:08:58 +0000 (14:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:43:12 +0000 (14:43 -0700)
commitc014e0ffd0ddaff75e59a77b463b5c852ecfd8cf
treeaaa55a4014915c650037daf448eeb62f404cee80
parentfd9af2c0f0b32f7783a0b66c2949932de87ab36f
windfarm: decrement client count when unregistering

commit fe2b592173ff0274e70dc44d1d28c19bb995aa7c upstream.

wf_unregister_client() increments the client count when a client
unregisters. That is obviously incorrect. Decrement that client count
instead.

Fixes: 75722d3992f5 ("[PATCH] ppc64: Thermal control for SMU based machines")

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/macintosh/windfarm_core.c