diff options
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r-- | drivers/net/wimax/i2400m/control.c | 2 | ||||
-rw-r--r-- | drivers/net/wimax/i2400m/driver.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wimax/i2400m/control.c b/drivers/net/wimax/i2400m/control.c index f9399f2597f3..07308686dbcf 100644 --- a/drivers/net/wimax/i2400m/control.c +++ b/drivers/net/wimax/i2400m/control.c | |||
@@ -697,7 +697,7 @@ struct sk_buff *i2400m_msg_to_dev(struct i2400m *i2400m, | |||
697 | 697 | ||
698 | rmb(); /* Make sure we see what i2400m_dev_reset_handle() */ | 698 | rmb(); /* Make sure we see what i2400m_dev_reset_handle() */ |
699 | if (i2400m->boot_mode) | 699 | if (i2400m->boot_mode) |
700 | return ERR_PTR(-ENODEV); | 700 | return ERR_PTR(-EL3RST); |
701 | 701 | ||
702 | msg_l3l4_hdr = buf; | 702 | msg_l3l4_hdr = buf; |
703 | /* Check msg & payload consistency */ | 703 | /* Check msg & payload consistency */ |
diff --git a/drivers/net/wimax/i2400m/driver.c b/drivers/net/wimax/i2400m/driver.c index 2a093c5768cc..304f0443ca4b 100644 --- a/drivers/net/wimax/i2400m/driver.c +++ b/drivers/net/wimax/i2400m/driver.c | |||
@@ -453,7 +453,7 @@ error_rx_setup: | |||
453 | i2400m_tx_release(i2400m); | 453 | i2400m_tx_release(i2400m); |
454 | error_tx_setup: | 454 | error_tx_setup: |
455 | error_bootstrap: | 455 | error_bootstrap: |
456 | if (result == -ERESTARTSYS && times-- > 0) { | 456 | if (result == -EL3RST && times-- > 0) { |
457 | flags = I2400M_BRI_SOFT|I2400M_BRI_MAC_REINIT; | 457 | flags = I2400M_BRI_SOFT|I2400M_BRI_MAC_REINIT; |
458 | goto retry; | 458 | goto retry; |
459 | } | 459 | } |
@@ -560,7 +560,7 @@ void __i2400m_dev_reset_handle(struct work_struct *ws) | |||
560 | * i2400m_dev_stop() [we are shutting down anyway, so | 560 | * i2400m_dev_stop() [we are shutting down anyway, so |
561 | * ignore it] or we are resetting somewhere else. */ | 561 | * ignore it] or we are resetting somewhere else. */ |
562 | dev_err(dev, "device rebooted\n"); | 562 | dev_err(dev, "device rebooted\n"); |
563 | i2400m_msg_to_dev_cancel_wait(i2400m, -ERESTARTSYS); | 563 | i2400m_msg_to_dev_cancel_wait(i2400m, -EL3RST); |
564 | complete(&i2400m->msg_completion); | 564 | complete(&i2400m->msg_completion); |
565 | goto out; | 565 | goto out; |
566 | } | 566 | } |