diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-03 09:23:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 14:16:43 -0500 |
commit | 853e3f4c5f49e51c904dab0d25eda82a92f1341f (patch) | |
tree | 3022b6ce6a837c1a598badbe363b6d7f2537babb /drivers | |
parent | fe17dc1e2bae8599aa034e678f7bbfd1f98e5a15 (diff) |
skge: 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>
Cc: Mirko Lindner <mlindner@marvell.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-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 78946feab4a2..bd77cb9dd964 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; |
@@ -5086,7 +5086,7 @@ err_out: | |||
5086 | return err; | 5086 | return err; |
5087 | } | 5087 | } |
5088 | 5088 | ||
5089 | static void __devexit sky2_remove(struct pci_dev *pdev) | 5089 | static void sky2_remove(struct pci_dev *pdev) |
5090 | { | 5090 | { |
5091 | struct sky2_hw *hw = pci_get_drvdata(pdev); | 5091 | struct sky2_hw *hw = pci_get_drvdata(pdev); |
5092 | int i; | 5092 | int i; |
@@ -5207,7 +5207,7 @@ static struct pci_driver sky2_driver = { | |||
5207 | .name = DRV_NAME, | 5207 | .name = DRV_NAME, |
5208 | .id_table = sky2_id_table, | 5208 | .id_table = sky2_id_table, |
5209 | .probe = sky2_probe, | 5209 | .probe = sky2_probe, |
5210 | .remove = __devexit_p(sky2_remove), | 5210 | .remove = sky2_remove, |
5211 | .shutdown = sky2_shutdown, | 5211 | .shutdown = sky2_shutdown, |
5212 | .driver.pm = SKY2_PM_OPS, | 5212 | .driver.pm = SKY2_PM_OPS, |
5213 | }; | 5213 | }; |