Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39274
b: refs/heads/master
c: 15e541f
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik authored and Linus Torvalds committed Oct 10, 2006
1 parent 107c926 commit a93c753
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 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: 3c693024cffa5c96a20b969f4efd058675e7700f
refs/heads/master: 15e541feb340bc2a4caaf707ee5ad71a47fdd068
20 changes: 7 additions & 13 deletions trunk/drivers/net/irda/donauboe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,13 +1154,10 @@ dumpbufs(skb->data,skb->len,'>');
static irqreturn_t
toshoboe_interrupt (int irq, void *dev_id)
{
struct toshoboe_cb *self = (struct toshoboe_cb *) dev_id;
struct toshoboe_cb *self = dev_id;
__u8 irqstat;
struct sk_buff *skb = NULL;

if (self == NULL && toshoboe_invalid_dev(irq))
return IRQ_NONE;

irqstat = INB (OBOE_ISR);

/* was it us */
Expand Down Expand Up @@ -1348,25 +1345,22 @@ toshoboe_net_open (struct net_device *dev)
{
struct toshoboe_cb *self;
unsigned long flags;
int rc;

IRDA_DEBUG (4, "%s()\n", __FUNCTION__);

IRDA_ASSERT (dev != NULL, return -1; );
self = (struct toshoboe_cb *) dev->priv;

IRDA_ASSERT (self != NULL, return 0; );
self = netdev_priv(dev);

if (self->async)
return -EBUSY;

if (self->stopped)
return 0;

if (request_irq (self->io.irq, toshoboe_interrupt,
IRQF_SHARED | IRQF_DISABLED, dev->name, (void *) self))
{
return -EAGAIN;
}
rc = request_irq (self->io.irq, toshoboe_interrupt,
IRQF_SHARED | IRQF_DISABLED, dev->name, self);
if (rc)
return rc;

spin_lock_irqsave(&self->spinlock, flags);
toshoboe_startchip (self);
Expand Down

0 comments on commit a93c753

Please sign in to comment.