david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Enable/disable interrupts in driver open/close.

This commit is contained in:
Michael Brown 2007-07-03 12:50:58 +01:00
parent 5f92f0bd82
commit 71f500ff1b
1 changed files with 8 additions and 3 deletions

View File

@ -57,12 +57,17 @@ static void legacy_poll ( struct net_device *netdev, unsigned int rx_quota ) {
}
}
static int legacy_open ( struct net_device *netdev __unused ) {
static int legacy_open ( struct net_device *netdev ) {
struct nic *nic = netdev->priv;
nic->nic_op->irq ( nic, ENABLE );
return 0;
}
static void legacy_close ( struct net_device *netdev __unused ) {
/* Nothing to do */
static void legacy_close ( struct net_device *netdev ) {
struct nic *nic = netdev->priv;
nic->nic_op->irq ( nic, DISABLE );
}
int legacy_probe ( void *hwdev,