isdn/capi: make reset_ctr op truly optional
authorTilman Schmidt <tilman@imap.cc>
Sun, 23 May 2010 01:02:08 +0000 (01:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2010 06:57:44 +0000 (23:57 -0700)
commit85a83560afa69862639fb2d6f670b4440a003335
treee05b3b907a204fc99f1a5115ed7ab03ce67a9d4d
parenta5e93151e4390e4d27bee27ddb73f78f58260594
isdn/capi: make reset_ctr op truly optional

The CAPI controller operation reset_ctr is marked as optional, and
not all drivers do implement it. Add a check to the kernel CAPI
whether it exists before trying to call it.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Acked-by: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/kcapi.c