Merge branch 'master' into for-next
Conflicts: MAINTAINERS arch/arm/mach-omap2/pm24xx.c drivers/scsi/bfa/bfa_fcpim.c Needed to update to apply fixes for which the old branch was too outdated.
This commit is contained in:
@@ -293,6 +293,7 @@ static inline void sca_tx_done(port_t *port)
|
||||
struct net_device *dev = port->netdev;
|
||||
card_t* card = port->card;
|
||||
u8 stat;
|
||||
unsigned count = 0;
|
||||
|
||||
spin_lock(&port->lock);
|
||||
|
||||
@@ -316,10 +317,12 @@ static inline void sca_tx_done(port_t *port)
|
||||
dev->stats.tx_bytes += readw(&desc->len);
|
||||
}
|
||||
writeb(0, &desc->stat); /* Free descriptor */
|
||||
count++;
|
||||
port->txlast = (port->txlast + 1) % card->tx_ring_buffers;
|
||||
}
|
||||
|
||||
netif_wake_queue(dev);
|
||||
if (count)
|
||||
netif_wake_queue(dev);
|
||||
spin_unlock(&port->lock);
|
||||
}
|
||||
|
||||
|
@@ -498,7 +498,6 @@ norbuff:
|
||||
static int x25_asy_close(struct net_device *dev)
|
||||
{
|
||||
struct x25_asy *sl = netdev_priv(dev);
|
||||
int err;
|
||||
|
||||
spin_lock(&sl->lock);
|
||||
if (sl->tty)
|
||||
@@ -507,10 +506,6 @@ static int x25_asy_close(struct net_device *dev)
|
||||
netif_stop_queue(dev);
|
||||
sl->rcount = 0;
|
||||
sl->xleft = 0;
|
||||
err = lapb_unregister(dev);
|
||||
if (err != LAPB_OK)
|
||||
printk(KERN_ERR "x25_asy_close: lapb_unregister error -%d\n",
|
||||
err);
|
||||
spin_unlock(&sl->lock);
|
||||
return 0;
|
||||
}
|
||||
@@ -582,7 +577,7 @@ static int x25_asy_open_tty(struct tty_struct *tty)
|
||||
if (err)
|
||||
return err;
|
||||
/* Done. We have linked the TTY line to a channel. */
|
||||
return sl->dev->base_addr;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -595,6 +590,7 @@ static int x25_asy_open_tty(struct tty_struct *tty)
|
||||
static void x25_asy_close_tty(struct tty_struct *tty)
|
||||
{
|
||||
struct x25_asy *sl = tty->disc_data;
|
||||
int err;
|
||||
|
||||
/* First make sure we're connected. */
|
||||
if (!sl || sl->magic != X25_ASY_MAGIC)
|
||||
@@ -605,6 +601,11 @@ static void x25_asy_close_tty(struct tty_struct *tty)
|
||||
dev_close(sl->dev);
|
||||
rtnl_unlock();
|
||||
|
||||
err = lapb_unregister(sl->dev);
|
||||
if (err != LAPB_OK)
|
||||
printk(KERN_ERR "x25_asy_close: lapb_unregister error -%d\n",
|
||||
err);
|
||||
|
||||
tty->disc_data = NULL;
|
||||
sl->tty = NULL;
|
||||
x25_asy_free(sl);
|
||||
|
Reference in New Issue
Block a user