]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/3c509.c
3c509.c: call SET_NETDEV_DEV for all device types (ISA/ISAPnP/EISA)
[karo-tx-linux.git] / drivers / net / 3c509.c
index 44b28b2d70039e959811a4c9cfa173ed5c6b7b43..15410f74e350a4afb5f78b01f4470552912a4021 100644 (file)
@@ -309,6 +309,7 @@ static int __devinit el3_isa_match(struct device *pdev,
        if (!dev)
                return -ENOMEM;
 
+       SET_NETDEV_DEV(dev, pdev);
        netdev_boot_setup_check(dev);
 
        if (!request_region(ioaddr, EL3_IO_EXTENT, "3c509-isa")) {
@@ -704,6 +705,7 @@ static int __init el3_eisa_probe (struct device *device)
                return -ENOMEM;
        }
 
+       SET_NETDEV_DEV(dev, device);
        netdev_boot_setup_check(dev);
 
        el3_dev_fill(dev, phys_addr, ioaddr, irq, if_port, EL3_EISA);