Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158898
b: refs/heads/master
c: efcfd1f
h: refs/heads/master
v: v3
  • Loading branch information
Andrey Yurovsky authored and John W. Linville committed Jul 10, 2009
1 parent 6effe68 commit ca5ed9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce8d096dac70e92a506d2f686ae4f724f42052cf
refs/heads/master: efcfd1f28f6a5c377a0e630ca2c96c54eb3f1e8f
7 changes: 4 additions & 3 deletions trunk/drivers/net/wireless/libertas/if_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ static int if_spi_c2h_data(struct if_spi_card *card)
goto out;
} else if (len > MRVDRV_ETH_RX_PACKET_BUFFER_SIZE) {
lbs_pr_err("%s: error: card has %d bytes of data, but "
"our maximum skb size is %lu\n",
"our maximum skb size is %zu\n",
__func__, len, MRVDRV_ETH_RX_PACKET_BUFFER_SIZE);
err = -EINVAL;
goto out;
Expand Down Expand Up @@ -1170,12 +1170,13 @@ static int __devexit libertas_spi_remove(struct spi_device *spi)

lbs_deb_spi("libertas_spi_remove\n");
lbs_deb_enter(LBS_DEB_SPI);
priv->surpriseremoved = 1;

lbs_stop_card(priv);
lbs_remove_card(priv); /* will call free_netdev */

priv->surpriseremoved = 1;
free_irq(spi->irq, card);
if_spi_terminate_spi_thread(card);
lbs_remove_card(priv); /* will call free_netdev */
if (card->pdata->teardown)
card->pdata->teardown(spi);
free_if_spi_card(card);
Expand Down

0 comments on commit ca5ed9c

Please sign in to comment.