diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 19:59:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 19:59:51 -0400 |
commit | b1cdc4670b9508fcd47a15fbd12f70d269880b37 (patch) | |
tree | fea9e2650170886d539488f8b1e064f6ca60ad36 /drivers/isdn | |
parent | ce7d0226198aac42ed311dd2783232adc16b296d (diff) | |
parent | f925b1303e0672effc78547353bd2ddfe11f5b5f (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (63 commits)
drivers/net/usb/asix.c: Fix pointer cast.
be2net: Bug fix to avoid disabling bottom half during firmware upgrade.
proc_dointvec: write a single value
hso: add support for new products
Phonet: fix potential use-after-free in pep_sock_close()
ath9k: remove VEOL support for ad-hoc
ath9k: change beacon allocation to prefer the first beacon slot
sock.h: fix kernel-doc warning
cls_cgroup: Fix build error when built-in
macvlan: do proper cleanup in macvlan_common_newlink() V2
be2net: Bug fix in init code in probe
net/dccp: expansion of error code size
ath9k: Fix rx of mcast/bcast frames in PS mode with auto sleep
wireless: fix sta_info.h kernel-doc warnings
wireless: fix mac80211.h kernel-doc warnings
iwlwifi: testing the wrong variable in iwl_add_bssid_station()
ath9k_htc: rare leak in ath9k_hif_usb_alloc_tx_urbs()
ath9k_htc: dereferencing before check in hif_usb_tx_cb()
rt2x00: Fix rt2800usb TX descriptor writing.
rt2x00: Fix failed SLEEP->AWAKE and AWAKE->SLEEP transitions.
...
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/capi/kcapi.c | 6 | ||||
-rw-r--r-- | drivers/isdn/gigaset/capi.c | 28 |
2 files changed, 8 insertions, 26 deletions
diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index bd00dceacaf..bde3c88b8b2 100644 --- a/drivers/isdn/capi/kcapi.c +++ b/drivers/isdn/capi/kcapi.c | |||
@@ -1147,6 +1147,12 @@ load_unlock_out: | |||
1147 | if (ctr->state == CAPI_CTR_DETECTED) | 1147 | if (ctr->state == CAPI_CTR_DETECTED) |
1148 | goto reset_unlock_out; | 1148 | goto reset_unlock_out; |
1149 | 1149 | ||
1150 | if (ctr->reset_ctr == NULL) { | ||
1151 | printk(KERN_DEBUG "kcapi: reset: no reset function\n"); | ||
1152 | retval = -ESRCH; | ||
1153 | goto reset_unlock_out; | ||
1154 | } | ||
1155 | |||
1150 | ctr->reset_ctr(ctr); | 1156 | ctr->reset_ctr(ctr); |
1151 | 1157 | ||
1152 | retval = wait_on_ctr_state(ctr, CAPI_CTR_DETECTED); | 1158 | retval = wait_on_ctr_state(ctr, CAPI_CTR_DETECTED); |
diff --git a/drivers/isdn/gigaset/capi.c b/drivers/isdn/gigaset/capi.c index ac4cfeed394..8f78f15c8ef 100644 --- a/drivers/isdn/gigaset/capi.c +++ b/drivers/isdn/gigaset/capi.c | |||
@@ -922,30 +922,6 @@ void gigaset_isdn_stop(struct cardstate *cs) | |||
922 | */ | 922 | */ |
923 | 923 | ||
924 | /* | 924 | /* |
925 | * load firmware | ||
926 | */ | ||
927 | static int gigaset_load_firmware(struct capi_ctr *ctr, capiloaddata *data) | ||
928 | { | ||
929 | struct cardstate *cs = ctr->driverdata; | ||
930 | |||
931 | /* AVM specific operation, not needed for Gigaset -- ignore */ | ||
932 | dev_notice(cs->dev, "load_firmware ignored\n"); | ||
933 | |||
934 | return 0; | ||
935 | } | ||
936 | |||
937 | /* | ||
938 | * reset (deactivate) controller | ||
939 | */ | ||
940 | static void gigaset_reset_ctr(struct capi_ctr *ctr) | ||
941 | { | ||
942 | struct cardstate *cs = ctr->driverdata; | ||
943 | |||
944 | /* AVM specific operation, not needed for Gigaset -- ignore */ | ||
945 | dev_notice(cs->dev, "reset_ctr ignored\n"); | ||
946 | } | ||
947 | |||
948 | /* | ||
949 | * register CAPI application | 925 | * register CAPI application |
950 | */ | 926 | */ |
951 | static void gigaset_register_appl(struct capi_ctr *ctr, u16 appl, | 927 | static void gigaset_register_appl(struct capi_ctr *ctr, u16 appl, |
@@ -2202,8 +2178,8 @@ int gigaset_isdn_regdev(struct cardstate *cs, const char *isdnid) | |||
2202 | iif->ctr.driverdata = cs; | 2178 | iif->ctr.driverdata = cs; |
2203 | strncpy(iif->ctr.name, isdnid, sizeof(iif->ctr.name)); | 2179 | strncpy(iif->ctr.name, isdnid, sizeof(iif->ctr.name)); |
2204 | iif->ctr.driver_name = "gigaset"; | 2180 | iif->ctr.driver_name = "gigaset"; |
2205 | iif->ctr.load_firmware = gigaset_load_firmware; | 2181 | iif->ctr.load_firmware = NULL; |
2206 | iif->ctr.reset_ctr = gigaset_reset_ctr; | 2182 | iif->ctr.reset_ctr = NULL; |
2207 | iif->ctr.register_appl = gigaset_register_appl; | 2183 | iif->ctr.register_appl = gigaset_register_appl; |
2208 | iif->ctr.release_appl = gigaset_release_appl; | 2184 | iif->ctr.release_appl = gigaset_release_appl; |
2209 | iif->ctr.send_message = gigaset_send_message; | 2185 | iif->ctr.send_message = gigaset_send_message; |