diff options
author | David S. Miller <davem@davemloft.net> | 2012-12-03 15:35:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-03 15:35:28 -0500 |
commit | 682d7978aee072f411fc747d32954a8371dd7b1b (patch) | |
tree | eeda0abd33caeb14d0adbc5ffd2a9a8cbb4b2ac8 /drivers/net/ethernet/marvell | |
parent | a5a81f0b9025867efb999d14a8dfc1907c5a4c3b (diff) | |
parent | 9f9a12f8ca79839c948464a37c5b557808278708 (diff) |
Merge tag 'dev_removal' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/net-next
Networking: Remove __dev* markings from the networking drivers
This is a series of patches that remove the dev* attributes for all
networking drivers, with the exception of wireless drivers, those are in
a different branch.
Use of __devinit, __devexit_p, __devinitdata, __devinitconst, and
__devexit are no longer needed since CONFIG_HOTPLUG is being removed as
an option.
Note, there are some devinit compiler section mismatch warnings due to
this series, but they are fixed up when merged with my driver-next
branch, which fixes the PCI device id warnings, and removes the modpost
detection, as it's no longer needed.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell')
-rw-r--r-- | drivers/net/ethernet/marvell/skge.c | 8 | ||||
-rw-r--r-- | drivers/net/ethernet/marvell/sky2.c | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c index d19a143aa5a8..3d66e959a0cc 100644 --- a/drivers/net/ethernet/marvell/skge.c +++ b/drivers/net/ethernet/marvell/skge.c | |||
@@ -3860,7 +3860,7 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port, | |||
3860 | return dev; | 3860 | return dev; |
3861 | } | 3861 | } |
3862 | 3862 | ||
3863 | static void __devinit skge_show_addr(struct net_device *dev) | 3863 | static void skge_show_addr(struct net_device *dev) |
3864 | { | 3864 | { |
3865 | const struct skge_port *skge = netdev_priv(dev); | 3865 | const struct skge_port *skge = netdev_priv(dev); |
3866 | 3866 | ||
@@ -3869,7 +3869,7 @@ static void __devinit skge_show_addr(struct net_device *dev) | |||
3869 | 3869 | ||
3870 | static int only_32bit_dma; | 3870 | static int only_32bit_dma; |
3871 | 3871 | ||
3872 | static int __devinit skge_probe(struct pci_dev *pdev, | 3872 | static int skge_probe(struct pci_dev *pdev, |
3873 | const struct pci_device_id *ent) | 3873 | const struct pci_device_id *ent) |
3874 | { | 3874 | { |
3875 | struct net_device *dev, *dev1; | 3875 | struct net_device *dev, *dev1; |
@@ -4012,7 +4012,7 @@ err_out: | |||
4012 | return err; | 4012 | return err; |
4013 | } | 4013 | } |
4014 | 4014 | ||
4015 | static void __devexit skge_remove(struct pci_dev *pdev) | 4015 | static void skge_remove(struct pci_dev *pdev) |
4016 | { | 4016 | { |
4017 | struct skge_hw *hw = pci_get_drvdata(pdev); | 4017 | struct skge_hw *hw = pci_get_drvdata(pdev); |
4018 | struct net_device *dev0, *dev1; | 4018 | struct net_device *dev0, *dev1; |
@@ -4142,7 +4142,7 @@ static struct pci_driver skge_driver = { | |||
4142 | .name = DRV_NAME, | 4142 | .name = DRV_NAME, |
4143 | .id_table = skge_id_table, | 4143 | .id_table = skge_id_table, |
4144 | .probe = skge_probe, | 4144 | .probe = skge_probe, |
4145 | .remove = __devexit_p(skge_remove), | 4145 | .remove = skge_remove, |
4146 | .shutdown = skge_shutdown, | 4146 | .shutdown = skge_shutdown, |
4147 | .driver.pm = SKGE_PM_OPS, | 4147 | .driver.pm = SKGE_PM_OPS, |
4148 | }; | 4148 | }; |
diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c index 19e6494f6ed3..6ddfbcae7807 100644 --- a/drivers/net/ethernet/marvell/sky2.c +++ b/drivers/net/ethernet/marvell/sky2.c | |||
@@ -3140,7 +3140,7 @@ static inline u32 sky2_clk2us(const struct sky2_hw *hw, u32 clk) | |||
3140 | } | 3140 | } |
3141 | 3141 | ||
3142 | 3142 | ||
3143 | static int __devinit sky2_init(struct sky2_hw *hw) | 3143 | static int sky2_init(struct sky2_hw *hw) |
3144 | { | 3144 | { |
3145 | u8 t8; | 3145 | u8 t8; |
3146 | 3146 | ||
@@ -4741,7 +4741,7 @@ static const struct net_device_ops sky2_netdev_ops[2] = { | |||
4741 | }; | 4741 | }; |
4742 | 4742 | ||
4743 | /* Initialize network device */ | 4743 | /* Initialize network device */ |
4744 | static __devinit struct net_device *sky2_init_netdev(struct sky2_hw *hw, | 4744 | static struct net_device *sky2_init_netdev(struct sky2_hw *hw, |
4745 | unsigned port, | 4745 | unsigned port, |
4746 | int highmem, int wol) | 4746 | int highmem, int wol) |
4747 | { | 4747 | { |
@@ -4807,7 +4807,7 @@ static __devinit struct net_device *sky2_init_netdev(struct sky2_hw *hw, | |||
4807 | return dev; | 4807 | return dev; |
4808 | } | 4808 | } |
4809 | 4809 | ||
4810 | static void __devinit sky2_show_addr(struct net_device *dev) | 4810 | static void sky2_show_addr(struct net_device *dev) |
4811 | { | 4811 | { |
4812 | const struct sky2_port *sky2 = netdev_priv(dev); | 4812 | const struct sky2_port *sky2 = netdev_priv(dev); |
4813 | 4813 | ||
@@ -4815,7 +4815,7 @@ static void __devinit sky2_show_addr(struct net_device *dev) | |||
4815 | } | 4815 | } |
4816 | 4816 | ||
4817 | /* Handle software interrupt used during MSI test */ | 4817 | /* Handle software interrupt used during MSI test */ |
4818 | static irqreturn_t __devinit sky2_test_intr(int irq, void *dev_id) | 4818 | static irqreturn_t sky2_test_intr(int irq, void *dev_id) |
4819 | { | 4819 | { |
4820 | struct sky2_hw *hw = dev_id; | 4820 | struct sky2_hw *hw = dev_id; |
4821 | u32 status = sky2_read32(hw, B0_Y2_SP_ISRC2); | 4821 | u32 status = sky2_read32(hw, B0_Y2_SP_ISRC2); |
@@ -4834,7 +4834,7 @@ static irqreturn_t __devinit sky2_test_intr(int irq, void *dev_id) | |||
4834 | } | 4834 | } |
4835 | 4835 | ||
4836 | /* Test interrupt path by forcing a a software IRQ */ | 4836 | /* Test interrupt path by forcing a a software IRQ */ |
4837 | static int __devinit sky2_test_msi(struct sky2_hw *hw) | 4837 | static int sky2_test_msi(struct sky2_hw *hw) |
4838 | { | 4838 | { |
4839 | struct pci_dev *pdev = hw->pdev; | 4839 | struct pci_dev *pdev = hw->pdev; |
4840 | int err; | 4840 | int err; |
@@ -4896,7 +4896,7 @@ static const char *sky2_name(u8 chipid, char *buf, int sz) | |||
4896 | return buf; | 4896 | return buf; |
4897 | } | 4897 | } |
4898 | 4898 | ||
4899 | static int __devinit sky2_probe(struct pci_dev *pdev, | 4899 | static int sky2_probe(struct pci_dev *pdev, |
4900 | const struct pci_device_id *ent) | 4900 | const struct pci_device_id *ent) |
4901 | { | 4901 | { |
4902 | struct net_device *dev, *dev1; | 4902 | struct net_device *dev, *dev1; |
@@ -5087,7 +5087,7 @@ err_out: | |||
5087 | return err; | 5087 | return err; |
5088 | } | 5088 | } |
5089 | 5089 | ||
5090 | static void __devexit sky2_remove(struct pci_dev *pdev) | 5090 | static void sky2_remove(struct pci_dev *pdev) |
5091 | { | 5091 | { |
5092 | struct sky2_hw *hw = pci_get_drvdata(pdev); | 5092 | struct sky2_hw *hw = pci_get_drvdata(pdev); |
5093 | int i; | 5093 | int i; |
@@ -5208,7 +5208,7 @@ static struct pci_driver sky2_driver = { | |||
5208 | .name = DRV_NAME, | 5208 | .name = DRV_NAME, |
5209 | .id_table = sky2_id_table, | 5209 | .id_table = sky2_id_table, |
5210 | .probe = sky2_probe, | 5210 | .probe = sky2_probe, |
5211 | .remove = __devexit_p(sky2_remove), | 5211 | .remove = sky2_remove, |
5212 | .shutdown = sky2_shutdown, | 5212 | .shutdown = sky2_shutdown, |
5213 | .driver.pm = SKY2_PM_OPS, | 5213 | .driver.pm = SKY2_PM_OPS, |
5214 | }; | 5214 | }; |