Enable/disable interrupts in driver open/close.
This commit is contained in:
parent
5f92f0bd82
commit
71f500ff1b
@ -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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void legacy_close ( struct net_device *netdev __unused ) {
|
static void legacy_close ( struct net_device *netdev ) {
|
||||||
/* Nothing to do */
|
struct nic *nic = netdev->priv;
|
||||||
|
|
||||||
|
nic->nic_op->irq ( nic, DISABLE );
|
||||||
}
|
}
|
||||||
|
|
||||||
int legacy_probe ( void *hwdev,
|
int legacy_probe ( void *hwdev,
|
||||||
|
Reference in New Issue
Block a user