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:37:49 +0000 (14:37 -0700)
commita5c58721ab7b93861043b9c1336901a0862dfa6a
treeca9d8073c5dd5b98ce2c78d86b043f7410eefdc7
parenta18006390cf8f53f73a7e5e08e7102212807e2e8
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