Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58370
b: refs/heads/master
c: 59b34c1
h: refs/heads/master
v: v3
  • Loading branch information
Yoichi Yuasa authored and Jeff Garzik committed Jul 9, 2007
1 parent 5e9bf9d commit 6918e40
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 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: d1c0a65fb597697d1fbce4eadf42b84f70483edc
refs/heads/master: 59b34c1260045ca264c0208f2b666e839909e2d4
7 changes: 5 additions & 2 deletions trunk/drivers/net/pcmcia/axnet_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ static void mdio_write(kio_addr_t addr, int phy_id, int loc, int value)

static int axnet_open(struct net_device *dev)
{
int ret;
axnet_dev_t *info = PRIV(dev);
struct pcmcia_device *link = info->p_dev;

Expand All @@ -529,9 +530,11 @@ static int axnet_open(struct net_device *dev)
if (!pcmcia_dev_present(link))
return -ENODEV;

link->open++;
ret = request_irq(dev->irq, ei_irq_wrapper, IRQF_SHARED, "axnet_cs", dev);
if (ret)
return ret;

request_irq(dev->irq, ei_irq_wrapper, IRQF_SHARED, "axnet_cs", dev);
link->open++;

info->link_status = 0x00;
init_timer(&info->watchdog);
Expand Down
9 changes: 6 additions & 3 deletions trunk/drivers/net/pcmcia/pcnet_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,7 @@ static void mii_phy_probe(struct net_device *dev)

static int pcnet_open(struct net_device *dev)
{
int ret;
pcnet_dev_t *info = PRIV(dev);
struct pcmcia_device *link = info->p_dev;

Expand All @@ -968,10 +969,12 @@ static int pcnet_open(struct net_device *dev)
if (!pcmcia_dev_present(link))
return -ENODEV;

link->open++;

set_misc_reg(dev);
request_irq(dev->irq, ei_irq_wrapper, IRQF_SHARED, dev_info, dev);
ret = request_irq(dev->irq, ei_irq_wrapper, IRQF_SHARED, dev_info, dev);
if (ret)
return ret;

link->open++;

info->phy_id = info->eth_phy;
info->link_status = 0x00;
Expand Down

0 comments on commit 6918e40

Please sign in to comment.