Warning clean up
[akaros.git] / kern / drivers / net / ether8139.c
index f995e6f..7b8beb8 100644 (file)
@@ -750,13 +750,10 @@ static int rtl8139pnp(struct ether *edev)
                edev->ea[4] = i;
                edev->ea[5] = i >> 8;
        }
-       edev->tbdf = MKBUS(BusPCI, ctlr->pcidev->bus, 
-                          ctlr->pcidev->dev, ctlr->pcidev->func);
-       printk("TBDF is %p\n", edev->tbdf);
-monitor(NULL);
+       edev->tbdf = MKBUS(BusPCI, ctlr->pcidev->bus, ctlr->pcidev->dev,
+                          ctlr->pcidev->func);
        edev->attach = rtl8139attach;
        edev->transmit = rtl8139transmit;
-       edev->interrupt = rtl8139interrupt;
        edev->ifstat = rtl8139ifstat;
 
        edev->netif.arg = edev;
@@ -768,6 +765,7 @@ monitor(NULL);
        if ((csr8r(ctlr, Msr) & (Speed10 | Linkb)) == 0)
                edev->netif.mbps = 100;
 
+       register_irq(edev->irq, rtl8139interrupt, edev, edev->tbdf);
        return 0;
 }