You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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:
committed by
David S. Miller
parent
596c5c9743
commit
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;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user