[NET]: Nuke SET_MODULE_OWNER macro.
It's been a useless no-op for long enough in 2.6 so I figured it's time to remove it. The number of people that could object because they're maintaining unified 2.4 and 2.6 drivers is probably rather small. [ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ] Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
596c5c9743
Коммит
10d024c1b2
|
@ -598,7 +598,6 @@ static void ether1394_add_host(struct hpsb_host *host)
|
|||
goto out;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &host->device);
|
||||
|
||||
priv = netdev_priv(dev);
|
||||
|
|
|
@ -886,7 +886,6 @@ static struct net_device *c2_devinit(struct c2_dev *c2dev,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(netdev);
|
||||
SET_NETDEV_DEV(netdev, &c2dev->pcidev->dev);
|
||||
|
||||
netdev->open = c2_up;
|
||||
|
|
|
@ -715,7 +715,6 @@ static int c2_pseudo_change_mtu(struct net_device *netdev, int new_mtu)
|
|||
|
||||
static void setup(struct net_device *netdev)
|
||||
{
|
||||
SET_MODULE_OWNER(netdev);
|
||||
netdev->open = c2_pseudo_up;
|
||||
netdev->stop = c2_pseudo_down;
|
||||
netdev->hard_start_xmit = c2_pseudo_xmit_frame;
|
||||
|
|
|
@ -978,8 +978,6 @@ static void ipoib_setup(struct net_device *dev)
|
|||
|
||||
netif_carrier_off(dev);
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
priv->dev = dev;
|
||||
|
||||
spin_lock_init(&priv->lock);
|
||||
|
|
|
@ -1427,8 +1427,6 @@ mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum)
|
|||
dlprintk((KERN_INFO MYNAM ": Finished registering dev "
|
||||
"and setting initial values\n"));
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (register_netdev(dev) != 0) {
|
||||
free_netdev(dev);
|
||||
dev = NULL;
|
||||
|
|
|
@ -174,8 +174,6 @@ struct net_device * __init el1_probe(int unit)
|
|||
mem_start = dev->mem_start & 7;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (io > 0x1ff) { /* Check a single specified location. */
|
||||
err = el1_probe1(dev, io);
|
||||
} else if (io != 0) {
|
||||
|
|
|
@ -95,8 +95,6 @@ static int __init do_el2_probe(struct net_device *dev)
|
|||
int base_addr = dev->base_addr;
|
||||
int irq = dev->irq;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (base_addr > 0x1ff) /* Check a single specified location. */
|
||||
return el2_probe1(dev, base_addr);
|
||||
else if (base_addr != 0) /* Don't probe at all. */
|
||||
|
|
|
@ -1387,8 +1387,6 @@ static int __init elplus_setup(struct net_device *dev)
|
|||
unsigned long cookie = 0;
|
||||
int err = -ENODEV;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/*
|
||||
* setup adapter structure
|
||||
*/
|
||||
|
|
|
@ -327,8 +327,6 @@ struct net_device * __init el16_probe(int unit)
|
|||
mem_start = dev->mem_start & 15;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (io > 0x1ff) /* Check a single specified location. */
|
||||
err = el16_probe1(dev, io);
|
||||
else if (io != 0)
|
||||
|
|
|
@ -432,7 +432,6 @@ __again:
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &idev->dev);
|
||||
pnp_cards++;
|
||||
|
||||
|
@ -524,8 +523,6 @@ no_pnp:
|
|||
if (!dev)
|
||||
return -ENOMEM;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
netdev_boot_setup_check(dev);
|
||||
|
||||
/* Set passed-in IRQ or I/O Addr. */
|
||||
|
@ -644,7 +641,6 @@ static int __init el3_mca_probe(struct device *device)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
netdev_boot_setup_check(dev);
|
||||
|
||||
memcpy(dev->dev_addr, phys_addr, sizeof(phys_addr));
|
||||
|
@ -704,8 +700,6 @@ static int __init el3_eisa_probe (struct device *device)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
netdev_boot_setup_check(dev);
|
||||
|
||||
memcpy(dev->dev_addr, phys_addr, sizeof(phys_addr));
|
||||
|
|
|
@ -501,8 +501,6 @@ static struct net_device *corkscrew_scan(int unit)
|
|||
netdev_boot_setup_check(dev);
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
#ifdef __ISAPNP__
|
||||
if(nopnp == 1)
|
||||
goto no_pnp;
|
||||
|
|
|
@ -423,7 +423,6 @@ static int __init do_elmc_probe(struct net_device *dev)
|
|||
int retval;
|
||||
struct priv *pr = dev->priv;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
if (MCA_bus == 0) {
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
|
@ -257,8 +257,6 @@ struct net_device *__init mc32_probe(int unit)
|
|||
if (unit >= 0)
|
||||
sprintf(dev->name, "eth%d", unit);
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* Do not check any supplied i/o locations.
|
||||
POS registers usually don't fail :) */
|
||||
|
||||
|
|
|
@ -1036,7 +1036,6 @@ static int __devinit vortex_probe1(struct device *gendev,
|
|||
printk (KERN_ERR PFX "unable to allocate etherdev, aborting\n");
|
||||
goto out;
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, gendev);
|
||||
vp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -1845,7 +1845,6 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
dev = alloc_etherdev(sizeof(struct cp_private));
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
cp = netdev_priv(dev);
|
||||
|
|
|
@ -766,7 +766,6 @@ static int __devinit rtl8139_init_board (struct pci_dev *pdev,
|
|||
dev_err(&pdev->dev, "Unable to alloc new net device\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
tp = netdev_priv(dev);
|
||||
|
|
|
@ -1234,7 +1234,6 @@ struct net_device * __init i82596_probe(int unit)
|
|||
DEB(DEB_PROBE,printk(KERN_INFO "%s", version));
|
||||
|
||||
/* The 82596-specific entries in the device structure. */
|
||||
SET_MODULE_OWNER(dev);
|
||||
dev->open = i596_open;
|
||||
dev->stop = i596_close;
|
||||
dev->hard_start_xmit = i596_start_xmit;
|
||||
|
|
|
@ -746,7 +746,6 @@ static int __devinit a2065_init_one(struct zorro_dev *z,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
priv = netdev_priv(dev);
|
||||
|
||||
r1->name = dev->name;
|
||||
|
|
|
@ -103,8 +103,6 @@ static int __init do_ac3200_probe(struct net_device *dev)
|
|||
int irq = dev->irq;
|
||||
int mem_start = dev->mem_start;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (ioaddr > 0x1ff) /* Check a single specified location. */
|
||||
return ac_probe1(ioaddr, dev);
|
||||
else if (ioaddr > 0) /* Don't probe at all. */
|
||||
|
|
|
@ -465,7 +465,6 @@ static int __devinit acenic_probe_one(struct pci_dev *pdev,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
ap = dev->priv;
|
||||
|
|
|
@ -1982,7 +1982,6 @@ static int __devinit amd8111e_probe_one(struct pci_dev *pdev,
|
|||
goto err_free_reg;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
#if AMD8111E_VLAN_TAG_USED
|
||||
|
|
|
@ -148,7 +148,6 @@ struct net_device * __init apne_probe(int unit)
|
|||
sprintf(dev->name, "eth%d", unit);
|
||||
netdev_boot_setup_check(dev);
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* disable pcmcia irq for readtuple */
|
||||
pcmcia_disable_irq();
|
||||
|
|
|
@ -235,8 +235,6 @@ struct net_device * __init cops_probe(int unit)
|
|||
base_addr = dev->base_addr = io;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (base_addr > 0x1ff) { /* Check a single specified location. */
|
||||
err = cops_probe1(dev, base_addr);
|
||||
} else if (base_addr != 0) { /* Don't probe at all. */
|
||||
|
|
|
@ -65,7 +65,6 @@ static struct net_device * __init ipddp_init(void)
|
|||
if (!dev)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
strcpy(dev->name, "ipddp%d");
|
||||
|
||||
if (version_printed++ == 0)
|
||||
|
|
|
@ -1046,8 +1046,6 @@ struct net_device * __init ltpc_probe(void)
|
|||
if (!dev)
|
||||
goto out;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* probe for the I/O port address */
|
||||
|
||||
if (io != 0x240 && request_region(0x220,8,"ltpc")) {
|
||||
|
|
|
@ -398,8 +398,6 @@ static int __init com90io_init(void)
|
|||
if (!dev)
|
||||
return -ENOMEM;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
dev->base_addr = io;
|
||||
dev->irq = irq;
|
||||
if (dev->irq == 2)
|
||||
|
|
|
@ -183,7 +183,6 @@ static int __devinit ariadne_init_one(struct zorro_dev *z,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
priv = netdev_priv(dev);
|
||||
|
||||
r1->name = dev->name;
|
||||
|
|
|
@ -986,7 +986,6 @@ static int __init at91ether_setup(unsigned long phy_type, unsigned short phy_add
|
|||
|
||||
dev->base_addr = AT91_VA_BASE_EMAC;
|
||||
dev->irq = AT91RM9200_ID_EMAC;
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* Install the interrupt handler */
|
||||
if (request_irq(dev->irq, at91ether_interrupt, 0, dev->name, dev)) {
|
||||
|
|
|
@ -1009,7 +1009,6 @@ ether1_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||
goto release;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &ec->dev);
|
||||
|
||||
dev->irq = ec->irq;
|
||||
|
|
|
@ -789,7 +789,6 @@ ether3_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||
goto release;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &ec->dev);
|
||||
|
||||
priv(dev)->base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0);
|
||||
|
|
|
@ -661,7 +661,6 @@ etherh_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||
goto release;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &ec->dev);
|
||||
|
||||
dev->open = etherh_open;
|
||||
|
|
|
@ -225,8 +225,6 @@ struct net_device * __init at1700_probe(int unit)
|
|||
dev->irq = irq;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (io > 0x1ff) { /* Check a single specified location. */
|
||||
err = at1700_probe1(dev, io);
|
||||
} else if (io != 0) { /* Don't probe at all. */
|
||||
|
|
|
@ -390,7 +390,6 @@ struct net_device * __init atarilance_probe(int unit)
|
|||
sprintf(dev->name, "eth%d", unit);
|
||||
netdev_boot_setup_check(dev);
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
for( i = 0; i < N_LANCE_ADDR; ++i ) {
|
||||
if (lance_probe1( dev, &lance_addr_list[i] )) {
|
||||
|
|
|
@ -2234,7 +2234,6 @@ static int __devinit atl1_probe(struct pci_dev *pdev,
|
|||
err = -ENOMEM;
|
||||
goto err_alloc_etherdev;
|
||||
}
|
||||
SET_MODULE_OWNER(netdev);
|
||||
SET_NETDEV_DEV(netdev, &pdev->dev);
|
||||
|
||||
pci_set_drvdata(pdev, netdev);
|
||||
|
|
|
@ -299,7 +299,6 @@ static int __init atp_probe1(long ioaddr)
|
|||
dev = alloc_etherdev(sizeof(struct net_local));
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* Find the IRQ used by triggering an interrupt. */
|
||||
write_reg_byte(ioaddr, CMR2, 0x01); /* No accept mode, IRQ out. */
|
||||
|
|
|
@ -2151,7 +2151,6 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
|
|||
goto err_out_free_res;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev,&pdev->dev);
|
||||
|
||||
/* No interesting netdevice features in this card... */
|
||||
|
|
|
@ -941,7 +941,6 @@ static int bfin_mac_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(ndev);
|
||||
SET_NETDEV_DEV(ndev, &pdev->dev);
|
||||
|
||||
platform_set_drvdata(pdev, ndev);
|
||||
|
|
|
@ -1291,7 +1291,6 @@ static int __devinit bmac_probe(struct macio_dev *mdev, const struct of_device_i
|
|||
}
|
||||
|
||||
bp = netdev_priv(dev);
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &mdev->ofdev.dev);
|
||||
macio_set_drvdata(mdev, dev);
|
||||
|
||||
|
|
|
@ -6474,7 +6474,6 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
|
|||
u32 reg;
|
||||
u64 dma_mask, persist_dma_mask;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
bp = netdev_priv(dev);
|
||||
|
||||
|
|
|
@ -4674,8 +4674,6 @@ int bond_create(char *name, struct bond_params *params, struct bonding **newbond
|
|||
goto out_netdev;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(bond_dev);
|
||||
|
||||
res = register_netdevice(bond_dev);
|
||||
if (res < 0) {
|
||||
goto out_bond;
|
||||
|
|
|
@ -4900,7 +4900,6 @@ static int __devinit cas_init_one(struct pci_dev *pdev,
|
|||
err = -ENOMEM;
|
||||
goto err_out_disable_pdev;
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
err = pci_request_regions(pdev, dev->name);
|
||||
|
|
|
@ -1036,7 +1036,6 @@ static int __devinit init_one(struct pci_dev *pdev,
|
|||
goto out_free_dev;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(netdev);
|
||||
SET_NETDEV_DEV(netdev, &pdev->dev);
|
||||
|
||||
if (!adapter) {
|
||||
|
|
|
@ -517,7 +517,6 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
|
|||
int eeprom_buff[CHKSUM_LEN];
|
||||
int retval;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
/* Initialize the device structure. */
|
||||
if (!modular) {
|
||||
memset(lp, 0, sizeof(*lp));
|
||||
|
|
|
@ -2465,7 +2465,6 @@ static int __devinit init_one(struct pci_dev *pdev,
|
|||
goto out_free_dev;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(netdev);
|
||||
SET_NETDEV_DEV(netdev, &pdev->dev);
|
||||
|
||||
adapter->port[i] = netdev;
|
||||
|
|
|
@ -394,7 +394,6 @@ static struct net_device * __init de600_probe(void)
|
|||
if (!dev)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (!request_region(DE600_IO, 3, "de600")) {
|
||||
printk(KERN_WARNING "DE600: port 0x%x busy\n", DE600_IO);
|
||||
|
|
|
@ -823,8 +823,6 @@ struct net_device * __init de620_probe(int unit)
|
|||
if (!dev)
|
||||
goto out;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
spin_lock_init(&de620_lock);
|
||||
|
||||
/*
|
||||
|
|
|
@ -539,7 +539,6 @@ static int __devinit dfx_register(struct device *bdev)
|
|||
goto err_out;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, bdev);
|
||||
|
||||
bp = netdev_priv(dev);
|
||||
|
|
|
@ -1272,7 +1272,6 @@ dgrs_found_device(
|
|||
priv->chan = 1;
|
||||
priv->devtbl[0] = dev;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, pdev);
|
||||
|
||||
ret = dgrs_probe1(dev);
|
||||
|
@ -1320,7 +1319,6 @@ dgrs_found_device(
|
|||
if (ret)
|
||||
goto fail;
|
||||
|
||||
SET_MODULE_OWNER(devN);
|
||||
SET_NETDEV_DEV(dev, pdev);
|
||||
|
||||
ret = register_netdev(devN);
|
||||
|
|
|
@ -116,7 +116,6 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
err = -ENOMEM;
|
||||
goto err_out_res;
|
||||
}
|
||||
SET_MODULE_OWNER (dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
#ifdef MEM_MAPPING
|
||||
|
|
|
@ -416,7 +416,6 @@ dm9000_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(ndev);
|
||||
SET_NETDEV_DEV(ndev, &pdev->dev);
|
||||
|
||||
PRINTK2("dm9000_probe()");
|
||||
|
|
|
@ -71,7 +71,6 @@ static void dummy_setup(struct net_device *dev)
|
|||
dev->change_mtu = NULL;
|
||||
dev->flags |= IFF_NOARP;
|
||||
dev->flags &= ~IFF_MULTICAST;
|
||||
SET_MODULE_OWNER(dev);
|
||||
random_ether_addr(dev->dev_addr);
|
||||
}
|
||||
|
||||
|
|
|
@ -2604,7 +2604,6 @@ static int __devinit e100_probe(struct pci_dev *pdev,
|
|||
goto err_out_free_res;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(netdev);
|
||||
SET_NETDEV_DEV(netdev, &pdev->dev);
|
||||
|
||||
if (use_io)
|
||||
|
|
|
@ -897,7 +897,6 @@ e1000_probe(struct pci_dev *pdev,
|
|||
if (!netdev)
|
||||
goto err_alloc_etherdev;
|
||||
|
||||
SET_MODULE_OWNER(netdev);
|
||||
SET_NETDEV_DEV(netdev, &pdev->dev);
|
||||
|
||||
pci_set_drvdata(pdev, netdev);
|
||||
|
|
|
@ -4040,7 +4040,6 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
|
|||
if (!netdev)
|
||||
goto err_alloc_etherdev;
|
||||
|
||||
SET_MODULE_OWNER(netdev);
|
||||
SET_NETDEV_DEV(netdev, &pdev->dev);
|
||||
|
||||
pci_set_drvdata(pdev, netdev);
|
||||
|
|
|
@ -124,8 +124,6 @@ static int __init do_e2100_probe(struct net_device *dev)
|
|||
int base_addr = dev->base_addr;
|
||||
int irq = dev->irq;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (base_addr > 0x1ff) /* Check a single specified location. */
|
||||
return e21_probe1(dev, base_addr);
|
||||
else if (base_addr != 0) /* Don't probe at all. */
|
||||
|
|
|
@ -537,8 +537,6 @@ static int __init do_eepro_probe(struct net_device *dev)
|
|||
int base_addr = dev->base_addr;
|
||||
int irq = dev->irq;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
#ifdef PnPWakeup
|
||||
/* XXXX for multiple cards should this only be run once? */
|
||||
|
||||
|
@ -594,8 +592,6 @@ struct net_device * __init eepro_probe(int unit)
|
|||
if (!dev)
|
||||
return ERR_PTR(-ENODEV);
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
sprintf(dev->name, "eth%d", unit);
|
||||
netdev_boot_setup_check(dev);
|
||||
|
||||
|
|
|
@ -635,7 +635,6 @@ static int __devinit speedo_found1(struct pci_dev *pdev,
|
|||
return -1;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
if (dev->mem_start > 0)
|
||||
|
|
|
@ -341,8 +341,6 @@ static int __init do_express_probe(struct net_device *dev)
|
|||
int dev_irq = dev->irq;
|
||||
int err;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
dev->if_port = 0xff; /* not set */
|
||||
|
||||
#ifdef CONFIG_MCA_LEGACY
|
||||
|
|
|
@ -2710,8 +2710,6 @@ struct ehea_port *ehea_setup_single_port(struct ehea_adapter *adapter,
|
|||
SET_NETDEV_DEV(dev, port_dev);
|
||||
|
||||
/* initialize net_device structure */
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
memcpy(dev->dev_addr, &port->mac_addr, ETH_ALEN);
|
||||
|
||||
dev->open = ehea_open;
|
||||
|
|
|
@ -352,7 +352,6 @@ static int __devinit epic_init_one (struct pci_dev *pdev,
|
|||
dev_err(&pdev->dev, "no memory for eth device\n");
|
||||
goto err_out_free_res;
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
#ifdef USE_IO_OPS
|
||||
|
|
|
@ -167,8 +167,6 @@ static void __init eql_setup(struct net_device *dev)
|
|||
{
|
||||
equalizer_t *eql = netdev_priv(dev);
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
init_timer(&eql->timer);
|
||||
eql->timer.data = (unsigned long) eql;
|
||||
eql->timer.expires = jiffies + EQL_DEFAULT_RESCHED_IVAL;
|
||||
|
|
|
@ -130,8 +130,6 @@ static int __init do_es_probe(struct net_device *dev)
|
|||
int irq = dev->irq;
|
||||
int mem_start = dev->mem_start;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (ioaddr > 0x1ff) /* Check a single specified location. */
|
||||
return es_probe1(dev, ioaddr);
|
||||
else if (ioaddr > 0) /* Don't probe at all. */
|
||||
|
|
|
@ -436,8 +436,6 @@ static int __init do_eth16i_probe(struct net_device *dev)
|
|||
int ioaddr;
|
||||
int base_addr = dev->base_addr;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if(eth16i_debug > 4)
|
||||
printk(KERN_DEBUG "Probing started for %s\n", cardname);
|
||||
|
||||
|
|
|
@ -356,7 +356,6 @@ struct net_device * __init ewrk3_probe(int unit)
|
|||
sprintf(dev->name, "eth%d", unit);
|
||||
netdev_boot_setup_check(dev);
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
err = ewrk3_probe1(dev, dev->base_addr, dev->irq);
|
||||
if (err)
|
||||
|
|
|
@ -527,7 +527,6 @@ static int __devinit fealnx_init_one(struct pci_dev *pdev,
|
|||
err = -ENOMEM;
|
||||
goto err_out_unmap;
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
/* read ethernet id */
|
||||
|
|
|
@ -1103,7 +1103,6 @@ int fec_8xx_init_one(const struct fec_platform_info *fpi,
|
|||
err = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
fep = netdev_priv(dev);
|
||||
fep->dev = dev;
|
||||
|
|
|
@ -5004,7 +5004,6 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i
|
|||
np->dev = dev;
|
||||
np->pci_dev = pci_dev;
|
||||
spin_lock_init(&np->lock);
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pci_dev->dev);
|
||||
|
||||
init_timer(&np->oom_kick);
|
||||
|
|
|
@ -953,7 +953,6 @@ static struct net_device *fs_init_instance(struct device *dev,
|
|||
err = -ENOMEM;
|
||||
goto err;
|
||||
}
|
||||
SET_MODULE_OWNER(ndev);
|
||||
|
||||
fep = netdev_priv(ndev);
|
||||
|
||||
|
|
|
@ -254,7 +254,6 @@ static int gfar_probe(struct platform_device *pdev)
|
|||
/* Set the dev->base_addr to the gfar reg region */
|
||||
dev->base_addr = (unsigned long) (priv->regs);
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
/* Fill in the dev structure */
|
||||
|
|
|
@ -613,7 +613,6 @@ static int __devinit hamachi_init_one (struct pci_dev *pdev,
|
|||
if (!dev)
|
||||
goto err_out_iounmap;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
#ifdef TX_CHECKSUM
|
||||
|
|
|
@ -345,8 +345,6 @@ static void sp_setup(struct net_device *dev)
|
|||
memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN);
|
||||
memcpy(dev->dev_addr, &ax25_defaddr, AX25_ADDR_LEN);
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
dev->flags = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -122,8 +122,6 @@ static int __init do_hpp_probe(struct net_device *dev)
|
|||
int base_addr = dev->base_addr;
|
||||
int irq = dev->irq;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (base_addr > 0x1ff) /* Check a single specified location. */
|
||||
return hpp_probe1(dev, base_addr);
|
||||
else if (base_addr != 0) /* Don't probe at all. */
|
||||
|
|
|
@ -86,8 +86,6 @@ static int __init do_hp_probe(struct net_device *dev)
|
|||
int base_addr = dev->base_addr;
|
||||
int irq = dev->irq;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (base_addr > 0x1ff) /* Check a single specified location. */
|
||||
return hp_probe1(dev, base_addr);
|
||||
else if (base_addr != 0) /* Don't probe at all. */
|
||||
|
|
|
@ -404,8 +404,6 @@ struct net_device * __init hp100_probe(int unit)
|
|||
if (!dev)
|
||||
return ERR_PTR(-ENODEV);
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
#ifdef HP100_DEBUG_B
|
||||
hp100_outw(0x4200, TRACE);
|
||||
printk("hp100: %s: probe\n", dev->name);
|
||||
|
@ -2843,7 +2841,6 @@ static int __init hp100_eisa_probe (struct device *gendev)
|
|||
if (!dev)
|
||||
return -ENOMEM;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &edev->dev);
|
||||
|
||||
err = hp100_probe1(dev, edev->base_addr + 0xC38, HP100_BUS_EISA, NULL);
|
||||
|
@ -2896,7 +2893,6 @@ static int __devinit hp100_pci_probe (struct pci_dev *pdev,
|
|||
goto out0;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
pci_read_config_word(pdev, PCI_COMMAND, &pci_command);
|
||||
|
@ -2993,7 +2989,6 @@ static int __init hp100_isa_init(void)
|
|||
|
||||
return -ENOMEM;
|
||||
}
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
err = hp100_isa_probe(dev, hp100_port[i]);
|
||||
if (!err)
|
||||
|
|
|
@ -112,7 +112,6 @@ static int __devinit hydra_init(struct zorro_dev *z)
|
|||
dev = ____alloc_ei_netdev(0);
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
for(j = 0; j < ETHER_ADDR_LEN; j++)
|
||||
dev->dev_addr[j] = *((u8 *)(board + HYDRA_ADDRPROM + 2*j));
|
||||
|
|
|
@ -1962,7 +1962,6 @@ static int __init emac_probe(struct ocp_device *ocpdev)
|
|||
dev->ndev = ndev;
|
||||
dev->ldev = &ocpdev->dev;
|
||||
dev->def = ocpdev->def;
|
||||
SET_MODULE_OWNER(ndev);
|
||||
|
||||
/* Find MAL device we are connected to */
|
||||
maldev =
|
||||
|
|
|
@ -907,8 +907,6 @@ static int ibmlana_probe(struct net_device *dev)
|
|||
ibmlana_priv *priv;
|
||||
ibmlana_medium medium;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* can't work without an MCA bus ;-) */
|
||||
if (MCA_bus == 0)
|
||||
return -ENODEV;
|
||||
|
|
|
@ -1142,8 +1142,6 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_
|
|||
if(!netdev)
|
||||
return -ENOMEM;
|
||||
|
||||
SET_MODULE_OWNER(netdev);
|
||||
|
||||
adapter = netdev->priv;
|
||||
dev->dev.driver_data = netdev;
|
||||
|
||||
|
@ -1258,7 +1256,6 @@ static void ibmveth_proc_register_driver(void)
|
|||
{
|
||||
ibmveth_proc_dir = proc_mkdir(IBMVETH_PROC_DIR, init_net.proc_net);
|
||||
if (ibmveth_proc_dir) {
|
||||
SET_MODULE_OWNER(ibmveth_proc_dir);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1356,7 +1353,6 @@ static void ibmveth_proc_register_adapter(struct ibmveth_adapter *adapter)
|
|||
} else {
|
||||
entry->data = (void *) adapter;
|
||||
entry->proc_fops = &ibmveth_proc_fops;
|
||||
SET_MODULE_OWNER(entry);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
|
@ -152,7 +152,6 @@ static void ifb_setup(struct net_device *dev)
|
|||
dev->change_mtu = NULL;
|
||||
dev->flags |= IFF_NOARP;
|
||||
dev->flags &= ~IFF_MULTICAST;
|
||||
SET_MODULE_OWNER(dev);
|
||||
random_ether_addr(dev->dev_addr);
|
||||
}
|
||||
|
||||
|
|
|
@ -1273,7 +1273,6 @@ static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
if (err)
|
||||
goto out_free;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
|
||||
ip = netdev_priv(dev);
|
||||
|
|
|
@ -360,10 +360,6 @@ static int ali_ircc_open(int i, chipio_t *info)
|
|||
self->tx_fifo.len = self->tx_fifo.ptr = self->tx_fifo.free = 0;
|
||||
self->tx_fifo.tail = self->tx_buff.head;
|
||||
|
||||
|
||||
/* Keep track of module usage */
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* Override the network functions we need to use */
|
||||
dev->hard_start_xmit = ali_ircc_sir_hard_xmit;
|
||||
dev->open = ali_ircc_net_open;
|
||||
|
|
|
@ -1660,7 +1660,6 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
|
|||
}
|
||||
#endif
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
SET_NETDEV_DEV(dev, &pci_dev->dev);
|
||||
dev->hard_start_xmit = toshoboe_hard_xmit;
|
||||
dev->open = toshoboe_net_open;
|
||||
|
|
|
@ -1635,7 +1635,6 @@ static int irda_usb_probe(struct usb_interface *intf,
|
|||
if (!net)
|
||||
goto err_out;
|
||||
|
||||
SET_MODULE_OWNER(net);
|
||||
SET_NETDEV_DEV(net, &intf->dev);
|
||||
self = net->priv;
|
||||
self->netdev = net;
|
||||
|
|
|
@ -175,8 +175,6 @@ irport_open(int i, unsigned int iobase, unsigned int irq)
|
|||
self->tx_buff.data = self->tx_buff.head;
|
||||
|
||||
self->netdev = dev;
|
||||
/* Keep track of module usage */
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* May be overridden by piggyback drivers */
|
||||
self->interrupt = irport_interrupt;
|
||||
|
|
|
@ -487,7 +487,6 @@ static int kingsun_probe(struct usb_interface *intf,
|
|||
if(!net)
|
||||
goto err_out1;
|
||||
|
||||
SET_MODULE_OWNER(net);
|
||||
SET_NETDEV_DEV(net, &intf->dev);
|
||||
kingsun = netdev_priv(net);
|
||||
kingsun->irlap = NULL;
|
||||
|
|
|
@ -697,7 +697,6 @@ static int ks959_probe(struct usb_interface *intf,
|
|||
if (!net)
|
||||
goto err_out1;
|
||||
|
||||
SET_MODULE_OWNER(net);
|
||||
SET_NETDEV_DEV(net, &intf->dev);
|
||||
kingsun = netdev_priv(net);
|
||||
kingsun->netdev = net;
|
||||
|
|
|
@ -628,7 +628,6 @@ static int ksdazzle_probe(struct usb_interface *intf,
|
|||
if (!net)
|
||||
goto err_out1;
|
||||
|
||||
SET_MODULE_OWNER(net);
|
||||
SET_NETDEV_DEV(net, &intf->dev);
|
||||
kingsun = netdev_priv(net);
|
||||
kingsun->netdev = net;
|
||||
|
|
|
@ -898,8 +898,6 @@ static int mcs_probe(struct usb_interface *intf,
|
|||
|
||||
IRDA_DEBUG(1, "MCS7780 USB-IrDA bridge found at %d.\n", udev->devnum);
|
||||
|
||||
/* what is it realy for? */
|
||||
SET_MODULE_OWNER(ndev);
|
||||
SET_NETDEV_DEV(ndev, &intf->dev);
|
||||
|
||||
ret = usb_reset_configuration(udev);
|
||||
|
|
|
@ -437,7 +437,6 @@ static int __init nsc_ircc_open(chipio_t *info)
|
|||
self->tx_fifo.tail = self->tx_buff.head;
|
||||
|
||||
/* Override the network functions we need to use */
|
||||
SET_MODULE_OWNER(dev);
|
||||
dev->hard_start_xmit = nsc_ircc_hard_xmit_sir;
|
||||
dev->open = nsc_ircc_net_open;
|
||||
dev->stop = nsc_ircc_net_close;
|
||||
|
|
|
@ -913,8 +913,6 @@ struct sir_dev * sirdev_get_instance(const struct sir_driver *drv, const char *n
|
|||
dev->drv = drv;
|
||||
dev->netdev = ndev;
|
||||
|
||||
SET_MODULE_OWNER(ndev);
|
||||
|
||||
/* Override the network functions we need to use */
|
||||
ndev->hard_start_xmit = sirdev_hard_xmit;
|
||||
ndev->open = sirdev_open;
|
||||
|
|
|
@ -519,8 +519,6 @@ static int __init smsc_ircc_open(unsigned int fir_base, unsigned int sir_base, u
|
|||
goto err_out1;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
dev->hard_start_xmit = smsc_ircc_hard_xmit_sir;
|
||||
#if SMSC_IRCC2_C_NET_TIMEOUT
|
||||
dev->tx_timeout = smsc_ircc_timeout;
|
||||
|
|
|
@ -1034,7 +1034,6 @@ static int stir_probe(struct usb_interface *intf,
|
|||
if(!net)
|
||||
goto err_out1;
|
||||
|
||||
SET_MODULE_OWNER(net);
|
||||
SET_NETDEV_DEV(net, &intf->dev);
|
||||
stir = netdev_priv(net);
|
||||
stir->netdev = net;
|
||||
|
|
|
@ -429,9 +429,6 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id)
|
|||
self->tx_fifo.len = self->tx_fifo.ptr = self->tx_fifo.free = 0;
|
||||
self->tx_fifo.tail = self->tx_buff.head;
|
||||
|
||||
/* Keep track of module usage */
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* Override the network functions we need to use */
|
||||
dev->hard_start_xmit = via_ircc_hard_xmit_sir;
|
||||
dev->open = via_ircc_net_open;
|
||||
|
|
|
@ -1584,8 +1584,6 @@ static int vlsi_irda_init(struct net_device *ndev)
|
|||
vlsi_irda_dev_t *idev = ndev->priv;
|
||||
struct pci_dev *pdev = idev->pdev;
|
||||
|
||||
SET_MODULE_OWNER(ndev);
|
||||
|
||||
ndev->irq = pdev->irq;
|
||||
ndev->base_addr = pci_resource_start(pdev,0);
|
||||
|
||||
|
|
|
@ -232,9 +232,6 @@ int w83977af_open(int i, unsigned int iobase, unsigned int irq,
|
|||
self->rx_buff.data = self->rx_buff.head;
|
||||
self->netdev = dev;
|
||||
|
||||
/* Keep track of module usage */
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
/* Override the network functions we need to use */
|
||||
dev->hard_start_xmit = w83977af_hard_xmit;
|
||||
dev->open = w83977af_net_open;
|
||||
|
|
|
@ -133,8 +133,6 @@ static int __init do_netcard_probe(struct net_device *dev)
|
|||
int base_addr = dev->base_addr;
|
||||
int irq = dev->irq;
|
||||
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
if (base_addr > 0x1ff) /* Check a single specified location. */
|
||||
return netcard_probe1(dev, base_addr);
|
||||
else if (base_addr != 0) /* Don't probe at all. */
|
||||
|
|
|
@ -382,7 +382,6 @@ ixgb_probe(struct pci_dev *pdev,
|
|||
goto err_alloc_etherdev;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(netdev);
|
||||
SET_NETDEV_DEV(netdev, &pdev->dev);
|
||||
|
||||
pci_set_drvdata(pdev, netdev);
|
||||
|
|
|
@ -2548,7 +2548,6 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
|
|||
goto err_alloc_etherdev;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(netdev);
|
||||
SET_NETDEV_DEV(netdev, &pdev->dev);
|
||||
|
||||
pci_set_drvdata(pdev, netdev);
|
||||
|
|
|
@ -210,7 +210,6 @@ static int __init enp2611_init_module(void)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
SET_MODULE_OWNER(nds[i]);
|
||||
nds[i]->get_stats = enp2611_get_stats;
|
||||
pm3386_init_port(i);
|
||||
pm3386_get_mac(i, nds[i]->dev_addr);
|
||||
|
|
|
@ -221,7 +221,6 @@ static int __init jazz_sonic_probe(struct platform_device *pdev)
|
|||
lp = netdev_priv(dev);
|
||||
lp->device = &pdev->dev;
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
SET_MODULE_OWNER(dev);
|
||||
|
||||
netdev_boot_setup_check(dev);
|
||||
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче