Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33505
b: refs/heads/master
c: 2fd0e33
h: refs/heads/master
i:
  33503: 7f8ca0b
v: v3
  • Loading branch information
Kevin Hao authored and Jeff Garzik committed Aug 19, 2006
1 parent 5235bca commit 366436e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 330ce0de93fd7cc0f72fa57a7ec892befe7035d2
refs/heads/master: 2fd0e33f4f967022ef2f3249b6c512b309734384
14 changes: 14 additions & 0 deletions trunk/drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,17 @@ static void dm9000_timeout(struct net_device *dev)
spin_unlock_irqrestore(&db->lock,flags);
}

#ifdef CONFIG_NET_POLL_CONTROLLER
/*
*Used by netconsole
*/
static void dm9000_poll_controller(struct net_device *dev)
{
disable_irq(dev->irq);
dm9000_interrupt(dev->irq,dev,NULL);
enable_irq(dev->irq);
}
#endif

/* dm9000_release_board
*
Expand Down Expand Up @@ -538,6 +549,9 @@ dm9000_probe(struct platform_device *pdev)
ndev->stop = &dm9000_stop;
ndev->get_stats = &dm9000_get_stats;
ndev->set_multicast_list = &dm9000_hash_table;
#ifdef CONFIG_NET_POLL_CONTROLLER
ndev->poll_controller = &dm9000_poll_controller;
#endif

#ifdef DM9000_PROGRAM_EEPROM
program_eeprom(db);
Expand Down

0 comments on commit 366436e

Please sign in to comment.