windfarm: decrement client count when unregistering
commit48c46d4aed1c27f363e4673e988212340e82e1bb
authorPaul Bolle <pebolle@tiscali.nl>
Fri, 31 Jul 2015 12:08:58 +0000 (31 14:08 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Oct 2015 02:46:05 +0000 (13 03:46 +0100)
treec46b456c4b365d48c1720df15499e9a4ef24f4d4
parentebc0ae5a7159086a992f7904dc9ad849a13eecfc
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: Ben Hutchings <ben@decadent.org.uk>
drivers/macintosh/windfarm_core.c