From: Michael Brown Date: Tue, 3 Jul 2007 11:50:58 +0000 (+0100) Subject: Enable/disable interrupts in driver open/close. X-Git-Tag: v0.9.3~323^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71f500ff1bf4c142b2dde10dfbe69fe73ec3302f;p=thirdparty%2Fipxe.git Enable/disable interrupts in driver open/close. --- diff --git a/src/drivers/net/legacy.c b/src/drivers/net/legacy.c index 22ddfe661..2d4633d44 100644 --- a/src/drivers/net/legacy.c +++ b/src/drivers/net/legacy.c @@ -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,