windfarm: decrement client count when unregistering
authorPaul Bolle <pebolle@tiscali.nl>
Fri, 31 Jul 2015 12:08:58 +0000 (14:08 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 6 Aug 2015 05:10:20 +0000 (15:10 +1000)
commitfe2b592173ff0274e70dc44d1d28c19bb995aa7c
tree0d7a28d7f54f80182e9a0e0636c350451c7ef072
parenta825ac078b50266fb09168547752dd73c2fd4b4a
windfarm: decrement client count when unregistering

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>
drivers/macintosh/windfarm_core.c