2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-08-22 03:00:30 +00:00

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

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,