diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/isdn/hisax/isar.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/isdn/hisax/isar.c')
-rw-r--r-- | drivers/isdn/hisax/isar.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/isdn/hisax/isar.c b/drivers/isdn/hisax/isar.c index 40b914bded8c..d4cce337add2 100644 --- a/drivers/isdn/hisax/isar.c +++ b/drivers/isdn/hisax/isar.c | |||
@@ -189,7 +189,7 @@ ISARVersion(struct IsdnCardState *cs, char *s) | |||
189 | static int | 189 | static int |
190 | isar_load_firmware(struct IsdnCardState *cs, u_char __user *buf) | 190 | isar_load_firmware(struct IsdnCardState *cs, u_char __user *buf) |
191 | { | 191 | { |
192 | int ret, size, cnt, debug; | 192 | int cfu_ret, ret, size, cnt, debug; |
193 | u_char len, nom, noc; | 193 | u_char len, nom, noc; |
194 | u_short sadr, left, *sp; | 194 | u_short sadr, left, *sp; |
195 | u_char __user *p = buf; | 195 | u_char __user *p = buf; |
@@ -212,9 +212,10 @@ isar_load_firmware(struct IsdnCardState *cs, u_char __user *buf) | |||
212 | cs->debug &= ~(L1_DEB_HSCX | L1_DEB_HSCX_FIFO); | 212 | cs->debug &= ~(L1_DEB_HSCX | L1_DEB_HSCX_FIFO); |
213 | #endif | 213 | #endif |
214 | 214 | ||
215 | if ((ret = copy_from_user(&size, p, sizeof(int)))) { | 215 | cfu_ret = copy_from_user(&size, p, sizeof(int)); |
216 | printk(KERN_ERR"isar_load_firmware copy_from_user ret %d\n", ret); | 216 | if (cfu_ret) { |
217 | return ret; | 217 | printk(KERN_ERR"isar_load_firmware copy_from_user ret %d\n", cfu_ret); |
218 | return -EFAULT; | ||
218 | } | 219 | } |
219 | p += sizeof(int); | 220 | p += sizeof(int); |
220 | printk(KERN_DEBUG"isar_load_firmware size: %d\n", size); | 221 | printk(KERN_DEBUG"isar_load_firmware size: %d\n", size); |
@@ -953,7 +954,7 @@ isar_pump_statev_modem(struct BCState *bcs, u_char devt) { | |||
953 | break; | 954 | break; |
954 | case PSEV_GSTN_CLR: | 955 | case PSEV_GSTN_CLR: |
955 | if (cs->debug & L1_DEB_HSCX) | 956 | if (cs->debug & L1_DEB_HSCX) |
956 | debugl1(cs, "pump stev GSTN CLEAR", devt); | 957 | debugl1(cs, "pump stev GSTN CLEAR"); |
957 | break; | 958 | break; |
958 | default: | 959 | default: |
959 | if (cs->debug & L1_DEB_HSCX) | 960 | if (cs->debug & L1_DEB_HSCX) |
@@ -1268,7 +1269,7 @@ isar_int_main(struct IsdnCardState *cs) | |||
1268 | static void | 1269 | static void |
1269 | ftimer_handler(struct BCState *bcs) { | 1270 | ftimer_handler(struct BCState *bcs) { |
1270 | if (bcs->cs->debug) | 1271 | if (bcs->cs->debug) |
1271 | debugl1(bcs->cs, "ftimer flags %04x", | 1272 | debugl1(bcs->cs, "ftimer flags %04lx", |
1272 | bcs->Flag); | 1273 | bcs->Flag); |
1273 | test_and_clear_bit(BC_FLG_FTI_RUN, &bcs->Flag); | 1274 | test_and_clear_bit(BC_FLG_FTI_RUN, &bcs->Flag); |
1274 | if (test_and_clear_bit(BC_FLG_LL_CONN, &bcs->Flag)) { | 1275 | if (test_and_clear_bit(BC_FLG_LL_CONN, &bcs->Flag)) { |
@@ -1427,8 +1428,8 @@ modeisar(struct BCState *bcs, int mode, int bc) | |||
1427 | &bcs->hw.isar.reg->Flags)) | 1428 | &bcs->hw.isar.reg->Flags)) |
1428 | bcs->hw.isar.dpath = 1; | 1429 | bcs->hw.isar.dpath = 1; |
1429 | else { | 1430 | else { |
1430 | printk(KERN_WARNING"isar modeisar analog funktions only with DP1\n"); | 1431 | printk(KERN_WARNING"isar modeisar analog functions only with DP1\n"); |
1431 | debugl1(cs, "isar modeisar analog funktions only with DP1"); | 1432 | debugl1(cs, "isar modeisar analog functions only with DP1"); |
1432 | return(1); | 1433 | return(1); |
1433 | } | 1434 | } |
1434 | break; | 1435 | break; |
@@ -1748,7 +1749,7 @@ isar_auxcmd(struct IsdnCardState *cs, isdn_ctrl *ic) { | |||
1748 | struct BCState *bcs; | 1749 | struct BCState *bcs; |
1749 | 1750 | ||
1750 | if (cs->debug & L1_DEB_HSCX) | 1751 | if (cs->debug & L1_DEB_HSCX) |
1751 | debugl1(cs, "isar_auxcmd cmd/ch %x/%d", ic->command, ic->arg); | 1752 | debugl1(cs, "isar_auxcmd cmd/ch %x/%ld", ic->command, ic->arg); |
1752 | switch (ic->command) { | 1753 | switch (ic->command) { |
1753 | case (ISDN_CMD_FAXCMD): | 1754 | case (ISDN_CMD_FAXCMD): |
1754 | bcs = cs->channel[ic->arg].bcs; | 1755 | bcs = cs->channel[ic->arg].bcs; |