#include <linux/config.h>
#include <linux/module.h>
#include <asm/system.h>
-#include <asm/bitops.h>
+#include <linux/bitops.h>
#include <asm/uaccess.h>
#include <linux/string.h>
#include <linux/mm.h>
}
ax->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP);
- actual = ax->tty->driver->write(ax->tty, 0, ax->xbuff, count);
+ actual = ax->tty->driver->write(ax->tty, ax->xbuff, count);
ax->tx_packets++;
ax->tx_bytes+=actual;
ax->dev->trans_start = jiffies;
return;
}
- actual = tty->driver->write(tty, 0, ax->xhead, ax->xleft);
+ actual = tty->driver->write(tty, ax->xhead, ax->xleft);
ax->xleft -= actual;
ax->xhead += actual;
}
ax->flags &= (1 << AXF_INUSE); /* Clear ESCAPE & ERROR flags */
- ax->buflock = SPIN_LOCK_UNLOCKED;
+ spin_lock_init(&ax->buflock);
netif_start_queue(dev);
return 0;