isdn/gigaset: remove dummy CAPI method implementations

Dummy implementations for the optional CAPI controller operations
load_firmware and reset_ctr can cause userspace callers to hang
indefinitely. It's better not to implement them at all.

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>

authored by

Tilman Schmidt and committed by
David S. Miller
e487639d 85a83560

+2 -26
+2 -26
drivers/isdn/gigaset/capi.c
··· 933 933 */ 934 934 935 935 /* 936 - * load firmware 937 - */ 938 - static int gigaset_load_firmware(struct capi_ctr *ctr, capiloaddata *data) 939 - { 940 - struct cardstate *cs = ctr->driverdata; 941 - 942 - /* AVM specific operation, not needed for Gigaset -- ignore */ 943 - dev_notice(cs->dev, "load_firmware ignored\n"); 944 - 945 - return 0; 946 - } 947 - 948 - /* 949 - * reset (deactivate) controller 950 - */ 951 - static void gigaset_reset_ctr(struct capi_ctr *ctr) 952 - { 953 - struct cardstate *cs = ctr->driverdata; 954 - 955 - /* AVM specific operation, not needed for Gigaset -- ignore */ 956 - dev_notice(cs->dev, "reset_ctr ignored\n"); 957 - } 958 - 959 - /* 960 936 * register CAPI application 961 937 */ 962 938 static void gigaset_register_appl(struct capi_ctr *ctr, u16 appl, ··· 2189 2213 iif->ctr.driverdata = cs; 2190 2214 strncpy(iif->ctr.name, isdnid, sizeof(iif->ctr.name)); 2191 2215 iif->ctr.driver_name = "gigaset"; 2192 - iif->ctr.load_firmware = gigaset_load_firmware; 2193 - iif->ctr.reset_ctr = gigaset_reset_ctr; 2216 + iif->ctr.load_firmware = NULL; 2217 + iif->ctr.reset_ctr = NULL; 2194 2218 iif->ctr.register_appl = gigaset_register_appl; 2195 2219 iif->ctr.release_appl = gigaset_release_appl; 2196 2220 iif->ctr.send_message = gigaset_send_message;