diff options
Diffstat (limited to 'drivers/net/wimax/i2400m/sdio.c')
-rw-r--r-- | drivers/net/wimax/i2400m/sdio.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/net/wimax/i2400m/sdio.c b/drivers/net/wimax/i2400m/sdio.c index 6e39665ecd89..14e66f06f235 100644 --- a/drivers/net/wimax/i2400m/sdio.c +++ b/drivers/net/wimax/i2400m/sdio.c | |||
@@ -519,18 +519,6 @@ int i2400ms_probe(struct sdio_func *func, | |||
519 | i2400m->bus_bm_mac_addr_impaired = 1; | 519 | i2400m->bus_bm_mac_addr_impaired = 1; |
520 | i2400m->bus_bm_pokes_table = &i2400ms_pokes[0]; | 520 | i2400m->bus_bm_pokes_table = &i2400ms_pokes[0]; |
521 | 521 | ||
522 | /* | ||
523 | * Before we are enabling the device interrupt register, make | ||
524 | * sure the buffer used during bootmode operation is setup so | ||
525 | * when the first D2H data interrupt comes, the memory is | ||
526 | * available for copying the D2H data. | ||
527 | */ | ||
528 | result = i2400m_bm_buf_alloc(i2400m); | ||
529 | if (result < 0) { | ||
530 | dev_err(dev, "cannot allocate SDIO bootmode buffer\n"); | ||
531 | goto error_bootmode_buf_setup; | ||
532 | } | ||
533 | |||
534 | result = i2400m_setup(i2400m, I2400M_BRI_NO_REBOOT); | 522 | result = i2400m_setup(i2400m, I2400M_BRI_NO_REBOOT); |
535 | if (result < 0) { | 523 | if (result < 0) { |
536 | dev_err(dev, "cannot setup device: %d\n", result); | 524 | dev_err(dev, "cannot setup device: %d\n", result); |
@@ -548,8 +536,6 @@ int i2400ms_probe(struct sdio_func *func, | |||
548 | error_debugfs_add: | 536 | error_debugfs_add: |
549 | i2400m_release(i2400m); | 537 | i2400m_release(i2400m); |
550 | error_setup: | 538 | error_setup: |
551 | i2400m_bm_buf_free(i2400m); | ||
552 | error_bootmode_buf_setup: | ||
553 | sdio_set_drvdata(func, NULL); | 539 | sdio_set_drvdata(func, NULL); |
554 | free_netdev(net_dev); | 540 | free_netdev(net_dev); |
555 | error_alloc_netdev: | 541 | error_alloc_netdev: |