diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-03 09:23:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 14:16:54 -0500 |
commit | 654b8c5ce3b32403a915dfd41d92ad3118c3406e (patch) | |
tree | c9759e128c3ef940290b0b6d1e1a2994ad50fff5 /drivers | |
parent | 33897cc869eef8b878b2408f77b7b0387e43e74e (diff) |
net/micrel: 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: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8695net.c | 10 | ||||
-rw-r--r-- | drivers/net/ethernet/micrel/ks8842.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851_mll.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/micrel/ksz884x.c | 4 |
5 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/ethernet/micrel/ks8695net.c b/drivers/net/ethernet/micrel/ks8695net.c index e62c31234cfa..07a6ebc47c92 100644 --- a/drivers/net/ethernet/micrel/ks8695net.c +++ b/drivers/net/ethernet/micrel/ks8695net.c | |||
@@ -1274,7 +1274,7 @@ ks8695_open(struct net_device *ndev) | |||
1274 | * This initialises the LAN switch in the KS8695 to a known-good | 1274 | * This initialises the LAN switch in the KS8695 to a known-good |
1275 | * set of defaults. | 1275 | * set of defaults. |
1276 | */ | 1276 | */ |
1277 | static void __devinit | 1277 | static void |
1278 | ks8695_init_switch(struct ks8695_priv *ksp) | 1278 | ks8695_init_switch(struct ks8695_priv *ksp) |
1279 | { | 1279 | { |
1280 | u32 ctrl; | 1280 | u32 ctrl; |
@@ -1302,7 +1302,7 @@ ks8695_init_switch(struct ks8695_priv *ksp) | |||
1302 | * This initialises a KS8695's WAN phy to sensible values for | 1302 | * This initialises a KS8695's WAN phy to sensible values for |
1303 | * autonegotiation etc. | 1303 | * autonegotiation etc. |
1304 | */ | 1304 | */ |
1305 | static void __devinit | 1305 | static void |
1306 | ks8695_init_wan_phy(struct ks8695_priv *ksp) | 1306 | ks8695_init_wan_phy(struct ks8695_priv *ksp) |
1307 | { | 1307 | { |
1308 | u32 ctrl; | 1308 | u32 ctrl; |
@@ -1346,7 +1346,7 @@ static const struct net_device_ops ks8695_netdev_ops = { | |||
1346 | * wan ports, and an IORESOURCE_IRQ for the link IRQ for the wan | 1346 | * wan ports, and an IORESOURCE_IRQ for the link IRQ for the wan |
1347 | * port. | 1347 | * port. |
1348 | */ | 1348 | */ |
1349 | static int __devinit | 1349 | static int |
1350 | ks8695_probe(struct platform_device *pdev) | 1350 | ks8695_probe(struct platform_device *pdev) |
1351 | { | 1351 | { |
1352 | struct ks8695_priv *ksp; | 1352 | struct ks8695_priv *ksp; |
@@ -1594,7 +1594,7 @@ ks8695_drv_resume(struct platform_device *pdev) | |||
1594 | * | 1594 | * |
1595 | * This unregisters and releases a KS8695 ethernet device. | 1595 | * This unregisters and releases a KS8695 ethernet device. |
1596 | */ | 1596 | */ |
1597 | static int __devexit | 1597 | static int |
1598 | ks8695_drv_remove(struct platform_device *pdev) | 1598 | ks8695_drv_remove(struct platform_device *pdev) |
1599 | { | 1599 | { |
1600 | struct net_device *ndev = platform_get_drvdata(pdev); | 1600 | struct net_device *ndev = platform_get_drvdata(pdev); |
@@ -1617,7 +1617,7 @@ static struct platform_driver ks8695_driver = { | |||
1617 | .owner = THIS_MODULE, | 1617 | .owner = THIS_MODULE, |
1618 | }, | 1618 | }, |
1619 | .probe = ks8695_probe, | 1619 | .probe = ks8695_probe, |
1620 | .remove = __devexit_p(ks8695_drv_remove), | 1620 | .remove = ks8695_drv_remove, |
1621 | .suspend = ks8695_drv_suspend, | 1621 | .suspend = ks8695_drv_suspend, |
1622 | .resume = ks8695_drv_resume, | 1622 | .resume = ks8695_drv_resume, |
1623 | }; | 1623 | }; |
diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c index 24fb049ac2f2..b71eb39ab448 100644 --- a/drivers/net/ethernet/micrel/ks8842.c +++ b/drivers/net/ethernet/micrel/ks8842.c | |||
@@ -1141,7 +1141,7 @@ static const struct ethtool_ops ks8842_ethtool_ops = { | |||
1141 | .get_link = ethtool_op_get_link, | 1141 | .get_link = ethtool_op_get_link, |
1142 | }; | 1142 | }; |
1143 | 1143 | ||
1144 | static int __devinit ks8842_probe(struct platform_device *pdev) | 1144 | static int ks8842_probe(struct platform_device *pdev) |
1145 | { | 1145 | { |
1146 | int err = -ENOMEM; | 1146 | int err = -ENOMEM; |
1147 | struct resource *iomem; | 1147 | struct resource *iomem; |
@@ -1240,7 +1240,7 @@ err_mem_region: | |||
1240 | return err; | 1240 | return err; |
1241 | } | 1241 | } |
1242 | 1242 | ||
1243 | static int __devexit ks8842_remove(struct platform_device *pdev) | 1243 | static int ks8842_remove(struct platform_device *pdev) |
1244 | { | 1244 | { |
1245 | struct net_device *netdev = platform_get_drvdata(pdev); | 1245 | struct net_device *netdev = platform_get_drvdata(pdev); |
1246 | struct ks8842_adapter *adapter = netdev_priv(netdev); | 1246 | struct ks8842_adapter *adapter = netdev_priv(netdev); |
@@ -1262,7 +1262,7 @@ static struct platform_driver ks8842_platform_driver = { | |||
1262 | .owner = THIS_MODULE, | 1262 | .owner = THIS_MODULE, |
1263 | }, | 1263 | }, |
1264 | .probe = ks8842_probe, | 1264 | .probe = ks8842_probe, |
1265 | .remove = __devexit_p(ks8842_remove), | 1265 | .remove = ks8842_remove, |
1266 | }; | 1266 | }; |
1267 | 1267 | ||
1268 | module_platform_driver(ks8842_platform_driver); | 1268 | module_platform_driver(ks8842_platform_driver); |
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c index 1540ebeb8669..286816a4e783 100644 --- a/drivers/net/ethernet/micrel/ks8851.c +++ b/drivers/net/ethernet/micrel/ks8851.c | |||
@@ -1415,7 +1415,7 @@ static int ks8851_resume(struct spi_device *spi) | |||
1415 | #define ks8851_resume NULL | 1415 | #define ks8851_resume NULL |
1416 | #endif | 1416 | #endif |
1417 | 1417 | ||
1418 | static int __devinit ks8851_probe(struct spi_device *spi) | 1418 | static int ks8851_probe(struct spi_device *spi) |
1419 | { | 1419 | { |
1420 | struct net_device *ndev; | 1420 | struct net_device *ndev; |
1421 | struct ks8851_net *ks; | 1421 | struct ks8851_net *ks; |
@@ -1534,7 +1534,7 @@ err_irq: | |||
1534 | return ret; | 1534 | return ret; |
1535 | } | 1535 | } |
1536 | 1536 | ||
1537 | static int __devexit ks8851_remove(struct spi_device *spi) | 1537 | static int ks8851_remove(struct spi_device *spi) |
1538 | { | 1538 | { |
1539 | struct ks8851_net *priv = dev_get_drvdata(&spi->dev); | 1539 | struct ks8851_net *priv = dev_get_drvdata(&spi->dev); |
1540 | 1540 | ||
@@ -1554,7 +1554,7 @@ static struct spi_driver ks8851_driver = { | |||
1554 | .owner = THIS_MODULE, | 1554 | .owner = THIS_MODULE, |
1555 | }, | 1555 | }, |
1556 | .probe = ks8851_probe, | 1556 | .probe = ks8851_probe, |
1557 | .remove = __devexit_p(ks8851_remove), | 1557 | .remove = ks8851_remove, |
1558 | .suspend = ks8851_suspend, | 1558 | .suspend = ks8851_suspend, |
1559 | .resume = ks8851_resume, | 1559 | .resume = ks8851_resume, |
1560 | }; | 1560 | }; |
diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c index 38529edfe350..ef8f9f92e547 100644 --- a/drivers/net/ethernet/micrel/ks8851_mll.c +++ b/drivers/net/ethernet/micrel/ks8851_mll.c | |||
@@ -1506,7 +1506,7 @@ static int ks_hw_init(struct ks_net *ks) | |||
1506 | } | 1506 | } |
1507 | 1507 | ||
1508 | 1508 | ||
1509 | static int __devinit ks8851_probe(struct platform_device *pdev) | 1509 | static int ks8851_probe(struct platform_device *pdev) |
1510 | { | 1510 | { |
1511 | int err = -ENOMEM; | 1511 | int err = -ENOMEM; |
1512 | struct resource *io_d, *io_c; | 1512 | struct resource *io_d, *io_c; |
@@ -1641,7 +1641,7 @@ err_mem_region: | |||
1641 | return err; | 1641 | return err; |
1642 | } | 1642 | } |
1643 | 1643 | ||
1644 | static int __devexit ks8851_remove(struct platform_device *pdev) | 1644 | static int ks8851_remove(struct platform_device *pdev) |
1645 | { | 1645 | { |
1646 | struct net_device *netdev = platform_get_drvdata(pdev); | 1646 | struct net_device *netdev = platform_get_drvdata(pdev); |
1647 | struct ks_net *ks = netdev_priv(netdev); | 1647 | struct ks_net *ks = netdev_priv(netdev); |
@@ -1663,7 +1663,7 @@ static struct platform_driver ks8851_platform_driver = { | |||
1663 | .owner = THIS_MODULE, | 1663 | .owner = THIS_MODULE, |
1664 | }, | 1664 | }, |
1665 | .probe = ks8851_probe, | 1665 | .probe = ks8851_probe, |
1666 | .remove = __devexit_p(ks8851_remove), | 1666 | .remove = ks8851_remove, |
1667 | }; | 1667 | }; |
1668 | 1668 | ||
1669 | module_platform_driver(ks8851_platform_driver); | 1669 | module_platform_driver(ks8851_platform_driver); |
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c index d16ef24e622f..f3f09b18a707 100644 --- a/drivers/net/ethernet/micrel/ksz884x.c +++ b/drivers/net/ethernet/micrel/ksz884x.c | |||
@@ -1487,7 +1487,7 @@ struct dev_priv { | |||
1487 | #define DRV_VERSION "1.0.0" | 1487 | #define DRV_VERSION "1.0.0" |
1488 | #define DRV_RELDATE "Feb 8, 2010" | 1488 | #define DRV_RELDATE "Feb 8, 2010" |
1489 | 1489 | ||
1490 | static char version[] __devinitdata = | 1490 | static char version[] = |
1491 | "Micrel " DEVICE_NAME " " DRV_VERSION " (" DRV_RELDATE ")"; | 1491 | "Micrel " DEVICE_NAME " " DRV_VERSION " (" DRV_RELDATE ")"; |
1492 | 1492 | ||
1493 | static u8 DEFAULT_MAC_ADDRESS[] = { 0x00, 0x10, 0xA1, 0x88, 0x42, 0x01 }; | 1493 | static u8 DEFAULT_MAC_ADDRESS[] = { 0x00, 0x10, 0xA1, 0x88, 0x42, 0x01 }; |
@@ -6919,7 +6919,7 @@ static void read_other_addr(struct ksz_hw *hw) | |||
6919 | #define PCI_VENDOR_ID_MICREL_KS 0x16c6 | 6919 | #define PCI_VENDOR_ID_MICREL_KS 0x16c6 |
6920 | #endif | 6920 | #endif |
6921 | 6921 | ||
6922 | static int __devinit pcidev_init(struct pci_dev *pdev, | 6922 | static int pcidev_init(struct pci_dev *pdev, |
6923 | const struct pci_device_id *id) | 6923 | const struct pci_device_id *id) |
6924 | { | 6924 | { |
6925 | struct net_device *dev; | 6925 | struct net_device *dev; |