isdn/capi: make reset_ctr op truly optional
commitb83839af65811ffdce669ecbec121ba11c2be594
authorTilman Schmidt <tilman@imap.cc>
Sun, 23 May 2010 01:02:08 +0000 (23 01:02 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:30:09 +0000 (2 10:30 -0700)
tree0473d938361dc40094002107c13ad346f3d25d5f
parentf082cf1cd3aa3df00aaf1f273994266140006680
isdn/capi: make reset_ctr op truly optional

commit 85a83560afa69862639fb2d6f670b4440a003335 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/isdn/capi/kcapi.c