Commit 0cb0568d authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

net/amd: remove __dev* attributes

CONFIG_HOTPLUG is going away as an option.  As result the __dev*
markings will be going away.

Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.
Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent af37557b
...@@ -639,12 +639,12 @@ static void lance_set_multicast(struct net_device *dev) ...@@ -639,12 +639,12 @@ static void lance_set_multicast(struct net_device *dev)
netif_wake_queue(dev); netif_wake_queue(dev);
} }
static int __devinit a2065_init_one(struct zorro_dev *z, static int a2065_init_one(struct zorro_dev *z,
const struct zorro_device_id *ent); const struct zorro_device_id *ent);
static void __devexit a2065_remove_one(struct zorro_dev *z); static void a2065_remove_one(struct zorro_dev *z);
static struct zorro_device_id a2065_zorro_tbl[] __devinitdata = { static struct zorro_device_id a2065_zorro_tbl[] = {
{ ZORRO_PROD_CBM_A2065_1 }, { ZORRO_PROD_CBM_A2065_1 },
{ ZORRO_PROD_CBM_A2065_2 }, { ZORRO_PROD_CBM_A2065_2 },
{ ZORRO_PROD_AMERISTAR_A2065 }, { ZORRO_PROD_AMERISTAR_A2065 },
...@@ -656,7 +656,7 @@ static struct zorro_driver a2065_driver = { ...@@ -656,7 +656,7 @@ static struct zorro_driver a2065_driver = {
.name = "a2065", .name = "a2065",
.id_table = a2065_zorro_tbl, .id_table = a2065_zorro_tbl,
.probe = a2065_init_one, .probe = a2065_init_one,
.remove = __devexit_p(a2065_remove_one), .remove = a2065_remove_one,
}; };
static const struct net_device_ops lance_netdev_ops = { static const struct net_device_ops lance_netdev_ops = {
...@@ -670,7 +670,7 @@ static const struct net_device_ops lance_netdev_ops = { ...@@ -670,7 +670,7 @@ static const struct net_device_ops lance_netdev_ops = {
.ndo_set_mac_address = eth_mac_addr, .ndo_set_mac_address = eth_mac_addr,
}; };
static int __devinit a2065_init_one(struct zorro_dev *z, static int a2065_init_one(struct zorro_dev *z,
const struct zorro_device_id *ent) const struct zorro_device_id *ent)
{ {
struct net_device *dev; struct net_device *dev;
...@@ -754,7 +754,7 @@ static int __devinit a2065_init_one(struct zorro_dev *z, ...@@ -754,7 +754,7 @@ static int __devinit a2065_init_one(struct zorro_dev *z,
} }
static void __devexit a2065_remove_one(struct zorro_dev *z) static void a2065_remove_one(struct zorro_dev *z)
{ {
struct net_device *dev = zorro_get_drvdata(z); struct net_device *dev = zorro_get_drvdata(z);
......
...@@ -1702,7 +1702,7 @@ static int amd8111e_resume(struct pci_dev *pci_dev) ...@@ -1702,7 +1702,7 @@ static int amd8111e_resume(struct pci_dev *pci_dev)
} }
static void __devexit amd8111e_remove_one(struct pci_dev *pdev) static void amd8111e_remove_one(struct pci_dev *pdev)
{ {
struct net_device *dev = pci_get_drvdata(pdev); struct net_device *dev = pci_get_drvdata(pdev);
if (dev) { if (dev) {
...@@ -1774,7 +1774,7 @@ static void amd8111e_config_ipg(struct net_device* dev) ...@@ -1774,7 +1774,7 @@ static void amd8111e_config_ipg(struct net_device* dev)
} }
static void __devinit amd8111e_probe_ext_phy(struct net_device* dev) static void amd8111e_probe_ext_phy(struct net_device *dev)
{ {
struct amd8111e_priv *lp = netdev_priv(dev); struct amd8111e_priv *lp = netdev_priv(dev);
int i; int i;
...@@ -1810,7 +1810,7 @@ static const struct net_device_ops amd8111e_netdev_ops = { ...@@ -1810,7 +1810,7 @@ static const struct net_device_ops amd8111e_netdev_ops = {
#endif #endif
}; };
static int __devinit amd8111e_probe_one(struct pci_dev *pdev, static int amd8111e_probe_one(struct pci_dev *pdev,
const struct pci_device_id *ent) const struct pci_device_id *ent)
{ {
int err,i,pm_cap; int err,i,pm_cap;
...@@ -1976,7 +1976,7 @@ static struct pci_driver amd8111e_driver = { ...@@ -1976,7 +1976,7 @@ static struct pci_driver amd8111e_driver = {
.name = MODULE_NAME, .name = MODULE_NAME,
.id_table = amd8111e_pci_tbl, .id_table = amd8111e_pci_tbl,
.probe = amd8111e_probe_one, .probe = amd8111e_probe_one,
.remove = __devexit_p(amd8111e_remove_one), .remove = amd8111e_remove_one,
.suspend = amd8111e_suspend, .suspend = amd8111e_suspend,
.resume = amd8111e_resume .resume = amd8111e_resume
}; };
......
...@@ -682,7 +682,7 @@ static void set_multicast_list(struct net_device *dev) ...@@ -682,7 +682,7 @@ static void set_multicast_list(struct net_device *dev)
} }
static void __devexit ariadne_remove_one(struct zorro_dev *z) static void ariadne_remove_one(struct zorro_dev *z)
{ {
struct net_device *dev = zorro_get_drvdata(z); struct net_device *dev = zorro_get_drvdata(z);
...@@ -692,7 +692,7 @@ static void __devexit ariadne_remove_one(struct zorro_dev *z) ...@@ -692,7 +692,7 @@ static void __devexit ariadne_remove_one(struct zorro_dev *z)
free_netdev(dev); free_netdev(dev);
} }
static struct zorro_device_id ariadne_zorro_tbl[] __devinitdata = { static struct zorro_device_id ariadne_zorro_tbl[] = {
{ ZORRO_PROD_VILLAGE_TRONIC_ARIADNE }, { ZORRO_PROD_VILLAGE_TRONIC_ARIADNE },
{ 0 } { 0 }
}; };
...@@ -710,7 +710,7 @@ static const struct net_device_ops ariadne_netdev_ops = { ...@@ -710,7 +710,7 @@ static const struct net_device_ops ariadne_netdev_ops = {
.ndo_set_mac_address = eth_mac_addr, .ndo_set_mac_address = eth_mac_addr,
}; };
static int __devinit ariadne_init_one(struct zorro_dev *z, static int ariadne_init_one(struct zorro_dev *z,
const struct zorro_device_id *ent) const struct zorro_device_id *ent)
{ {
unsigned long board = z->resource.start; unsigned long board = z->resource.start;
...@@ -774,7 +774,7 @@ static struct zorro_driver ariadne_driver = { ...@@ -774,7 +774,7 @@ static struct zorro_driver ariadne_driver = {
.name = "ariadne", .name = "ariadne",
.id_table = ariadne_zorro_tbl, .id_table = ariadne_zorro_tbl,
.probe = ariadne_init_one, .probe = ariadne_init_one,
.remove = __devexit_p(ariadne_remove_one), .remove = ariadne_remove_one,
}; };
static int __init ariadne_init_module(void) static int __init ariadne_init_module(void)
......
...@@ -1016,7 +1016,7 @@ static const struct net_device_ops au1000_netdev_ops = { ...@@ -1016,7 +1016,7 @@ static const struct net_device_ops au1000_netdev_ops = {
.ndo_change_mtu = eth_change_mtu, .ndo_change_mtu = eth_change_mtu,
}; };
static int __devinit au1000_probe(struct platform_device *pdev) static int au1000_probe(struct platform_device *pdev)
{ {
static unsigned version_printed; static unsigned version_printed;
struct au1000_private *aup = NULL; struct au1000_private *aup = NULL;
...@@ -1295,7 +1295,7 @@ static int __devinit au1000_probe(struct platform_device *pdev) ...@@ -1295,7 +1295,7 @@ static int __devinit au1000_probe(struct platform_device *pdev)
return err; return err;
} }
static int __devexit au1000_remove(struct platform_device *pdev) static int au1000_remove(struct platform_device *pdev)
{ {
struct net_device *dev = platform_get_drvdata(pdev); struct net_device *dev = platform_get_drvdata(pdev);
struct au1000_private *aup = netdev_priv(dev); struct au1000_private *aup = netdev_priv(dev);
...@@ -1340,7 +1340,7 @@ static int __devexit au1000_remove(struct platform_device *pdev) ...@@ -1340,7 +1340,7 @@ static int __devexit au1000_remove(struct platform_device *pdev)
static struct platform_driver au1000_eth_driver = { static struct platform_driver au1000_eth_driver = {
.probe = au1000_probe, .probe = au1000_probe,
.remove = __devexit_p(au1000_remove), .remove = au1000_remove,
.driver = { .driver = {
.name = "au1000-eth", .name = "au1000-eth",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
#include <asm/dec/machtype.h> #include <asm/dec/machtype.h>
#include <asm/dec/system.h> #include <asm/dec/system.h>
static char version[] __devinitdata = static char version[] =
"declance.c: v0.011 by Linux MIPS DECstation task force\n"; "declance.c: v0.011 by Linux MIPS DECstation task force\n";
MODULE_AUTHOR("Linux MIPS DECstation task force"); MODULE_AUTHOR("Linux MIPS DECstation task force");
...@@ -1020,7 +1020,7 @@ static const struct net_device_ops lance_netdev_ops = { ...@@ -1020,7 +1020,7 @@ static const struct net_device_ops lance_netdev_ops = {
.ndo_set_mac_address = eth_mac_addr, .ndo_set_mac_address = eth_mac_addr,
}; };
static int __devinit dec_lance_probe(struct device *bdev, const int type) static int dec_lance_probe(struct device *bdev, const int type)
{ {
static unsigned version_printed; static unsigned version_printed;
static const char fmt[] = "declance%d"; static const char fmt[] = "declance%d";
...@@ -1322,7 +1322,7 @@ static void __exit dec_lance_platform_remove(void) ...@@ -1322,7 +1322,7 @@ static void __exit dec_lance_platform_remove(void)
} }
#ifdef CONFIG_TC #ifdef CONFIG_TC
static int __devinit dec_lance_tc_probe(struct device *dev); static int dec_lance_tc_probe(struct device *dev);
static int __exit dec_lance_tc_remove(struct device *dev); static int __exit dec_lance_tc_remove(struct device *dev);
static const struct tc_device_id dec_lance_tc_table[] = { static const struct tc_device_id dec_lance_tc_table[] = {
...@@ -1341,7 +1341,7 @@ static struct tc_driver dec_lance_tc_driver = { ...@@ -1341,7 +1341,7 @@ static struct tc_driver dec_lance_tc_driver = {
}, },
}; };
static int __devinit dec_lance_tc_probe(struct device *dev) static int dec_lance_tc_probe(struct device *dev)
{ {
int status = dec_lance_probe(dev, PMAD_LANCE); int status = dec_lance_probe(dev, PMAD_LANCE);
if (!status) if (!status)
......
...@@ -338,21 +338,21 @@ static struct eisa_driver depca_eisa_driver = { ...@@ -338,21 +338,21 @@ static struct eisa_driver depca_eisa_driver = {
.driver = { .driver = {
.name = depca_string, .name = depca_string,
.probe = depca_eisa_probe, .probe = depca_eisa_probe,
.remove = __devexit_p (depca_device_remove) .remove = depca_device_remove
} }
}; };
#endif #endif
static int depca_isa_probe (struct platform_device *); static int depca_isa_probe (struct platform_device *);
static int __devexit depca_isa_remove(struct platform_device *pdev) static int depca_isa_remove(struct platform_device *pdev)
{ {
return depca_device_remove(&pdev->dev); return depca_device_remove(&pdev->dev);
} }
static struct platform_driver depca_isa_driver = { static struct platform_driver depca_isa_driver = {
.probe = depca_isa_probe, .probe = depca_isa_probe,
.remove = __devexit_p(depca_isa_remove), .remove = depca_isa_remove,
.driver = { .driver = {
.name = depca_string, .name = depca_string,
}, },
...@@ -1320,7 +1320,7 @@ static enum depca_type __init depca_shmem_probe (ulong *mem_start) ...@@ -1320,7 +1320,7 @@ static enum depca_type __init depca_shmem_probe (ulong *mem_start)
return adapter; return adapter;
} }
static int __devinit depca_isa_probe (struct platform_device *device) static int depca_isa_probe(struct platform_device *device)
{ {
struct net_device *dev; struct net_device *dev;
struct depca_private *lp; struct depca_private *lp;
...@@ -1412,7 +1412,7 @@ static int __init depca_eisa_probe (struct device *device) ...@@ -1412,7 +1412,7 @@ static int __init depca_eisa_probe (struct device *device)
} }
#endif #endif
static int __devexit depca_device_remove (struct device *device) static int depca_device_remove(struct device *device)
{ {
struct net_device *dev; struct net_device *dev;
struct depca_private *lp; struct depca_private *lp;
......
...@@ -46,11 +46,11 @@ struct hplance_private { ...@@ -46,11 +46,11 @@ struct hplance_private {
* plus board-specific init, open and close actions. * plus board-specific init, open and close actions.
* Oh, and we need to tell the generic code how to read and write LANCE registers... * Oh, and we need to tell the generic code how to read and write LANCE registers...
*/ */
static int __devinit hplance_init_one(struct dio_dev *d, static int hplance_init_one(struct dio_dev *d,
const struct dio_device_id *ent); const struct dio_device_id *ent);
static void __devinit hplance_init(struct net_device *dev, static void hplance_init(struct net_device *dev,
struct dio_dev *d); struct dio_dev *d);
static void __devexit hplance_remove_one(struct dio_dev *d); static void hplance_remove_one(struct dio_dev *d);
static void hplance_writerap(void *priv, unsigned short value); static void hplance_writerap(void *priv, unsigned short value);
static void hplance_writerdp(void *priv, unsigned short value); static void hplance_writerdp(void *priv, unsigned short value);
static unsigned short hplance_readrdp(void *priv); static unsigned short hplance_readrdp(void *priv);
...@@ -66,7 +66,7 @@ static struct dio_driver hplance_driver = { ...@@ -66,7 +66,7 @@ static struct dio_driver hplance_driver = {
.name = "hplance", .name = "hplance",
.id_table = hplance_dio_tbl, .id_table = hplance_dio_tbl,
.probe = hplance_init_one, .probe = hplance_init_one,
.remove = __devexit_p(hplance_remove_one), .remove = hplance_remove_one,
}; };
static const struct net_device_ops hplance_netdev_ops = { static const struct net_device_ops hplance_netdev_ops = {
...@@ -83,7 +83,7 @@ static const struct net_device_ops hplance_netdev_ops = { ...@@ -83,7 +83,7 @@ static const struct net_device_ops hplance_netdev_ops = {
}; };
/* Find all the HP Lance boards and initialise them... */ /* Find all the HP Lance boards and initialise them... */
static int __devinit hplance_init_one(struct dio_dev *d, static int hplance_init_one(struct dio_dev *d,
const struct dio_device_id *ent) const struct dio_device_id *ent)
{ {
struct net_device *dev; struct net_device *dev;
...@@ -118,7 +118,7 @@ static int __devinit hplance_init_one(struct dio_dev *d, ...@@ -118,7 +118,7 @@ static int __devinit hplance_init_one(struct dio_dev *d,
return err; return err;
} }
static void __devexit hplance_remove_one(struct dio_dev *d) static void hplance_remove_one(struct dio_dev *d)
{ {
struct net_device *dev = dio_get_drvdata(d); struct net_device *dev = dio_get_drvdata(d);
...@@ -128,7 +128,7 @@ static void __devexit hplance_remove_one(struct dio_dev *d) ...@@ -128,7 +128,7 @@ static void __devexit hplance_remove_one(struct dio_dev *d)
} }
/* Initialise a single lance board at the given DIO device */ /* Initialise a single lance board at the given DIO device */
static void __devinit hplance_init(struct net_device *dev, struct dio_dev *d) static void hplance_init(struct net_device *dev, struct dio_dev *d)
{ {
unsigned long va = (d->resource.start + DIO_VIRADDRBASE); unsigned long va = (d->resource.start + DIO_VIRADDRBASE);
struct hplance_private *lp; struct hplance_private *lp;
......
...@@ -1304,7 +1304,7 @@ static const struct net_device_ops sparc_lance_ops = { ...@@ -1304,7 +1304,7 @@ static const struct net_device_ops sparc_lance_ops = {
.ndo_validate_addr = eth_validate_addr, .ndo_validate_addr = eth_validate_addr,
}; };
static int __devinit sparc_lance_probe_one(struct platform_device *op, static int sparc_lance_probe_one(struct platform_device *op,
struct platform_device *ledma, struct platform_device *ledma,
struct platform_device *lebuffer) struct platform_device *lebuffer)
{ {
...@@ -1488,7 +1488,7 @@ static int __devinit sparc_lance_probe_one(struct platform_device *op, ...@@ -1488,7 +1488,7 @@ static int __devinit sparc_lance_probe_one(struct platform_device *op,
return -ENODEV; return -ENODEV;
} }
static int __devinit sunlance_sbus_probe(struct platform_device *op) static int sunlance_sbus_probe(struct platform_device *op)
{ {
struct platform_device *parent = to_platform_device(op->dev.parent); struct platform_device *parent = to_platform_device(op->dev.parent);
struct device_node *parent_dp = parent->dev.of_node; struct device_node *parent_dp = parent->dev.of_node;
...@@ -1504,7 +1504,7 @@ static int __devinit sunlance_sbus_probe(struct platform_device *op) ...@@ -1504,7 +1504,7 @@ static int __devinit sunlance_sbus_probe(struct platform_device *op)
return err; return err;
} }
static int __devexit sunlance_sbus_remove(struct platform_device *op) static int sunlance_sbus_remove(struct platform_device *op)
{ {
struct lance_private *lp = dev_get_drvdata(&op->dev); struct lance_private *lp = dev_get_drvdata(&op->dev);
struct net_device *net_dev = lp->dev; struct net_device *net_dev = lp->dev;
...@@ -1536,7 +1536,7 @@ static struct platform_driver sunlance_sbus_driver = { ...@@ -1536,7 +1536,7 @@ static struct platform_driver sunlance_sbus_driver = {
.of_match_table = sunlance_sbus_match, .of_match_table = sunlance_sbus_match,
}, },
.probe = sunlance_sbus_probe, .probe = sunlance_sbus_probe,
.remove = __devexit_p(sunlance_sbus_remove), .remove = sunlance_sbus_remove,
}; };
module_platform_driver(sunlance_sbus_driver); module_platform_driver(sunlance_sbus_driver);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment