CAPI: Rework capi_ctr_ready/down
authorJan Kiszka <jan.kiszka@web.de>
Mon, 8 Feb 2010 10:12:12 +0000 (10:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 00:01:21 +0000 (16:01 -0800)
commit3efecf7a49cde47e5f2deb1d5504951ff4bede53
tree0080a12e211ea9be33b076f4a824ece6cb3df390
parent9717fb8b64ed41be9dd074bc8010bafd33046f1a
CAPI: Rework capi_ctr_ready/down

This step prepares the application of proper controller locking: Push
all state changing work into the notify handler that are called by
capi_ctr_ready and capi_ctr_down, switch detach_capi_ctr to issue a
synchronous ctr_down. Also ensure that we do not go through any action
if the state did not change.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/kcapi.c