aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-03 09:24:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-03 14:16:55 -0500
commitf73d12bd298f9614d8600326e9bd1f7871fcde4b (patch)
tree736c67ac825f2576b6d3a703defd1859e13787eb /drivers/net/ethernet/sun
parentf48a3c2af87960e3d497b518a3253337a18016db (diff)
net/sun: 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/net/ethernet/sun')
-rw-r--r--drivers/net/ethernet/sun/cassini.c12
-rw-r--r--drivers/net/ethernet/sun/niu.c90
-rw-r--r--drivers/net/ethernet/sun/sunbmac.c8
-rw-r--r--drivers/net/ethernet/sun/sungem.c6
-rw-r--r--drivers/net/ethernet/sun/sunhme.c18
-rw-r--r--drivers/net/ethernet/sun/sunqe.c12
-rw-r--r--drivers/net/ethernet/sun/sunvnet.c14
7 files changed, 80 insertions, 80 deletions
diff --git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.c
index c8251be104d6..85f971fe2611 100644
--- a/drivers/net/ethernet/sun/cassini.c
+++ b/drivers/net/ethernet/sun/cassini.c
@@ -185,7 +185,7 @@
185#define CAS_RESET_SPARE 3 185#define CAS_RESET_SPARE 3
186#endif 186#endif
187 187
188static char version[] __devinitdata = 188static char version[] =
189 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 189 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
190 190
191static int cassini_debug = -1; /* -1 == use CAS_DEF_MSG_ENABLE as value */ 191static int cassini_debug = -1; /* -1 == use CAS_DEF_MSG_ENABLE as value */
@@ -222,7 +222,7 @@ static int link_transition_timeout;
222 222
223 223
224 224
225static u16 link_modes[] __devinitdata = { 225static u16 link_modes[] = {
226 BMCR_ANENABLE, /* 0 : autoneg */ 226 BMCR_ANENABLE, /* 0 : autoneg */
227 0, /* 1 : 10bt half duplex */ 227 0, /* 1 : 10bt half duplex */
228 BMCR_SPEED100, /* 2 : 100bt half duplex */ 228 BMCR_SPEED100, /* 2 : 100bt half duplex */
@@ -4820,7 +4820,7 @@ static int cas_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
4820 * only subordinate device and we can tweak the bridge settings to 4820 * only subordinate device and we can tweak the bridge settings to
4821 * reflect that fact. 4821 * reflect that fact.
4822 */ 4822 */
4823static void __devinit cas_program_bridge(struct pci_dev *cas_pdev) 4823static void cas_program_bridge(struct pci_dev *cas_pdev)
4824{ 4824{
4825 struct pci_dev *pdev = cas_pdev->bus->self; 4825 struct pci_dev *pdev = cas_pdev->bus->self;
4826 u32 val; 4826 u32 val;
@@ -4916,7 +4916,7 @@ static const struct net_device_ops cas_netdev_ops = {
4916#endif 4916#endif
4917}; 4917};
4918 4918
4919static int __devinit cas_init_one(struct pci_dev *pdev, 4919static int cas_init_one(struct pci_dev *pdev,
4920 const struct pci_device_id *ent) 4920 const struct pci_device_id *ent)
4921{ 4921{
4922 static int cas_version_printed = 0; 4922 static int cas_version_printed = 0;
@@ -5175,7 +5175,7 @@ err_out_disable_pdev:
5175 return -ENODEV; 5175 return -ENODEV;
5176} 5176}
5177 5177
5178static void __devexit cas_remove_one(struct pci_dev *pdev) 5178static void cas_remove_one(struct pci_dev *pdev)
5179{ 5179{
5180 struct net_device *dev = pci_get_drvdata(pdev); 5180 struct net_device *dev = pci_get_drvdata(pdev);
5181 struct cas *cp; 5181 struct cas *cp;
@@ -5273,7 +5273,7 @@ static struct pci_driver cas_driver = {
5273 .name = DRV_MODULE_NAME, 5273 .name = DRV_MODULE_NAME,
5274 .id_table = cas_pci_tbl, 5274 .id_table = cas_pci_tbl,
5275 .probe = cas_init_one, 5275 .probe = cas_init_one,
5276 .remove = __devexit_p(cas_remove_one), 5276 .remove = cas_remove_one,
5277#ifdef CONFIG_PM 5277#ifdef CONFIG_PM
5278 .suspend = cas_suspend, 5278 .suspend = cas_suspend,
5279 .resume = cas_resume 5279 .resume = cas_resume
diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c
index 275b430aeb75..6023949be3bd 100644
--- a/drivers/net/ethernet/sun/niu.c
+++ b/drivers/net/ethernet/sun/niu.c
@@ -38,7 +38,7 @@
38#define DRV_MODULE_VERSION "1.1" 38#define DRV_MODULE_VERSION "1.1"
39#define DRV_MODULE_RELDATE "Apr 22, 2010" 39#define DRV_MODULE_RELDATE "Apr 22, 2010"
40 40
41static char version[] __devinitdata = 41static char version[] =
42 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 42 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
43 43
44MODULE_AUTHOR("David S. Miller (davem@davemloft.net)"); 44MODULE_AUTHOR("David S. Miller (davem@davemloft.net)");
@@ -7977,7 +7977,7 @@ static int niu_set_ldg_sid(struct niu *np, int ldg, int func, int vector)
7977 return 0; 7977 return 0;
7978} 7978}
7979 7979
7980static int __devinit niu_pci_eeprom_read(struct niu *np, u32 addr) 7980static int niu_pci_eeprom_read(struct niu *np, u32 addr)
7981{ 7981{
7982 u64 frame, frame_base = (ESPC_PIO_STAT_READ_START | 7982 u64 frame, frame_base = (ESPC_PIO_STAT_READ_START |
7983 (addr << ESPC_PIO_STAT_ADDR_SHIFT)); 7983 (addr << ESPC_PIO_STAT_ADDR_SHIFT));
@@ -8020,7 +8020,7 @@ static int __devinit niu_pci_eeprom_read(struct niu *np, u32 addr)
8020 return (frame & ESPC_PIO_STAT_DATA) >> ESPC_PIO_STAT_DATA_SHIFT; 8020 return (frame & ESPC_PIO_STAT_DATA) >> ESPC_PIO_STAT_DATA_SHIFT;
8021} 8021}
8022 8022
8023static int __devinit niu_pci_eeprom_read16(struct niu *np, u32 off) 8023static int niu_pci_eeprom_read16(struct niu *np, u32 off)
8024{ 8024{
8025 int err = niu_pci_eeprom_read(np, off); 8025 int err = niu_pci_eeprom_read(np, off);
8026 u16 val; 8026 u16 val;
@@ -8036,7 +8036,7 @@ static int __devinit niu_pci_eeprom_read16(struct niu *np, u32 off)
8036 return val; 8036 return val;
8037} 8037}
8038 8038
8039static int __devinit niu_pci_eeprom_read16_swp(struct niu *np, u32 off) 8039static int niu_pci_eeprom_read16_swp(struct niu *np, u32 off)
8040{ 8040{
8041 int err = niu_pci_eeprom_read(np, off); 8041 int err = niu_pci_eeprom_read(np, off);
8042 u16 val; 8042 u16 val;
@@ -8054,7 +8054,7 @@ static int __devinit niu_pci_eeprom_read16_swp(struct niu *np, u32 off)
8054 return val; 8054 return val;
8055} 8055}
8056 8056
8057static int __devinit niu_pci_vpd_get_propname(struct niu *np, 8057static int niu_pci_vpd_get_propname(struct niu *np,
8058 u32 off, 8058 u32 off,
8059 char *namebuf, 8059 char *namebuf,
8060 int namebuf_len) 8060 int namebuf_len)
@@ -8075,7 +8075,7 @@ static int __devinit niu_pci_vpd_get_propname(struct niu *np,
8075 return i + 1; 8075 return i + 1;
8076} 8076}
8077 8077
8078static void __devinit niu_vpd_parse_version(struct niu *np) 8078static void niu_vpd_parse_version(struct niu *np)
8079{ 8079{
8080 struct niu_vpd *vpd = &np->vpd; 8080 struct niu_vpd *vpd = &np->vpd;
8081 int len = strlen(vpd->version) + 1; 8081 int len = strlen(vpd->version) + 1;
@@ -8102,7 +8102,7 @@ static void __devinit niu_vpd_parse_version(struct niu *np)
8102} 8102}
8103 8103
8104/* ESPC_PIO_EN_ENABLE must be set */ 8104/* ESPC_PIO_EN_ENABLE must be set */
8105static int __devinit niu_pci_vpd_scan_props(struct niu *np, 8105static int niu_pci_vpd_scan_props(struct niu *np,
8106 u32 start, u32 end) 8106 u32 start, u32 end)
8107{ 8107{
8108 unsigned int found_mask = 0; 8108 unsigned int found_mask = 0;
@@ -8189,7 +8189,7 @@ static int __devinit niu_pci_vpd_scan_props(struct niu *np,
8189} 8189}
8190 8190
8191/* ESPC_PIO_EN_ENABLE must be set */ 8191/* ESPC_PIO_EN_ENABLE must be set */
8192static void __devinit niu_pci_vpd_fetch(struct niu *np, u32 start) 8192static void niu_pci_vpd_fetch(struct niu *np, u32 start)
8193{ 8193{
8194 u32 offset; 8194 u32 offset;
8195 int err; 8195 int err;
@@ -8224,7 +8224,7 @@ static void __devinit niu_pci_vpd_fetch(struct niu *np, u32 start)
8224} 8224}
8225 8225
8226/* ESPC_PIO_EN_ENABLE must be set */ 8226/* ESPC_PIO_EN_ENABLE must be set */
8227static u32 __devinit niu_pci_vpd_offset(struct niu *np) 8227static u32 niu_pci_vpd_offset(struct niu *np)
8228{ 8228{
8229 u32 start = 0, end = ESPC_EEPROM_SIZE, ret; 8229 u32 start = 0, end = ESPC_EEPROM_SIZE, ret;
8230 int err; 8230 int err;
@@ -8279,7 +8279,7 @@ static u32 __devinit niu_pci_vpd_offset(struct niu *np)
8279 return 0; 8279 return 0;
8280} 8280}
8281 8281
8282static int __devinit niu_phy_type_prop_decode(struct niu *np, 8282static int niu_phy_type_prop_decode(struct niu *np,
8283 const char *phy_prop) 8283 const char *phy_prop)
8284{ 8284{
8285 if (!strcmp(phy_prop, "mif")) { 8285 if (!strcmp(phy_prop, "mif")) {
@@ -8334,7 +8334,7 @@ static int niu_pci_vpd_get_nports(struct niu *np)
8334 return ports; 8334 return ports;
8335} 8335}
8336 8336
8337static void __devinit niu_pci_vpd_validate(struct niu *np) 8337static void niu_pci_vpd_validate(struct niu *np)
8338{ 8338{
8339 struct net_device *dev = np->dev; 8339 struct net_device *dev = np->dev;
8340 struct niu_vpd *vpd = &np->vpd; 8340 struct niu_vpd *vpd = &np->vpd;
@@ -8380,7 +8380,7 @@ static void __devinit niu_pci_vpd_validate(struct niu *np)
8380 memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len); 8380 memcpy(dev->dev_addr, dev->perm_addr, dev->addr_len);
8381} 8381}
8382 8382
8383static int __devinit niu_pci_probe_sprom(struct niu *np) 8383static int niu_pci_probe_sprom(struct niu *np)
8384{ 8384{
8385 struct net_device *dev = np->dev; 8385 struct net_device *dev = np->dev;
8386 int len, i; 8386 int len, i;
@@ -8538,7 +8538,7 @@ static int __devinit niu_pci_probe_sprom(struct niu *np)
8538 return 0; 8538 return 0;
8539} 8539}
8540 8540
8541static int __devinit niu_get_and_validate_port(struct niu *np) 8541static int niu_get_and_validate_port(struct niu *np)
8542{ 8542{
8543 struct niu_parent *parent = np->parent; 8543 struct niu_parent *parent = np->parent;
8544 8544
@@ -8572,7 +8572,7 @@ static int __devinit niu_get_and_validate_port(struct niu *np)
8572 return 0; 8572 return 0;
8573} 8573}
8574 8574
8575static int __devinit phy_record(struct niu_parent *parent, 8575static int phy_record(struct niu_parent *parent,
8576 struct phy_probe_info *p, 8576 struct phy_probe_info *p,
8577 int dev_id_1, int dev_id_2, u8 phy_port, 8577 int dev_id_1, int dev_id_2, u8 phy_port,
8578 int type) 8578 int type)
@@ -8611,7 +8611,7 @@ static int __devinit phy_record(struct niu_parent *parent,
8611 return 0; 8611 return 0;
8612} 8612}
8613 8613
8614static int __devinit port_has_10g(struct phy_probe_info *p, int port) 8614static int port_has_10g(struct phy_probe_info *p, int port)
8615{ 8615{
8616 int i; 8616 int i;
8617 8617
@@ -8627,7 +8627,7 @@ static int __devinit port_has_10g(struct phy_probe_info *p, int port)
8627 return 0; 8627 return 0;
8628} 8628}
8629 8629
8630static int __devinit count_10g_ports(struct phy_probe_info *p, int *lowest) 8630static int count_10g_ports(struct phy_probe_info *p, int *lowest)
8631{ 8631{
8632 int port, cnt; 8632 int port, cnt;
8633 8633
@@ -8644,7 +8644,7 @@ static int __devinit count_10g_ports(struct phy_probe_info *p, int *lowest)
8644 return cnt; 8644 return cnt;
8645} 8645}
8646 8646
8647static int __devinit count_1g_ports(struct phy_probe_info *p, int *lowest) 8647static int count_1g_ports(struct phy_probe_info *p, int *lowest)
8648{ 8648{
8649 *lowest = 32; 8649 *lowest = 32;
8650 if (p->cur[PHY_TYPE_MII]) 8650 if (p->cur[PHY_TYPE_MII])
@@ -8653,7 +8653,7 @@ static int __devinit count_1g_ports(struct phy_probe_info *p, int *lowest)
8653 return p->cur[PHY_TYPE_MII]; 8653 return p->cur[PHY_TYPE_MII];
8654} 8654}
8655 8655
8656static void __devinit niu_n2_divide_channels(struct niu_parent *parent) 8656static void niu_n2_divide_channels(struct niu_parent *parent)
8657{ 8657{
8658 int num_ports = parent->num_ports; 8658 int num_ports = parent->num_ports;
8659 int i; 8659 int i;
@@ -8669,7 +8669,7 @@ static void __devinit niu_n2_divide_channels(struct niu_parent *parent)
8669 } 8669 }
8670} 8670}
8671 8671
8672static void __devinit niu_divide_channels(struct niu_parent *parent, 8672static void niu_divide_channels(struct niu_parent *parent,
8673 int num_10g, int num_1g) 8673 int num_10g, int num_1g)
8674{ 8674{
8675 int num_ports = parent->num_ports; 8675 int num_ports = parent->num_ports;
@@ -8731,7 +8731,7 @@ static void __devinit niu_divide_channels(struct niu_parent *parent,
8731 } 8731 }
8732} 8732}
8733 8733
8734static void __devinit niu_divide_rdc_groups(struct niu_parent *parent, 8734static void niu_divide_rdc_groups(struct niu_parent *parent,
8735 int num_10g, int num_1g) 8735 int num_10g, int num_1g)
8736{ 8736{
8737 int i, num_ports = parent->num_ports; 8737 int i, num_ports = parent->num_ports;
@@ -8776,7 +8776,7 @@ static void __devinit niu_divide_rdc_groups(struct niu_parent *parent,
8776 } 8776 }
8777} 8777}
8778 8778
8779static int __devinit fill_phy_probe_info(struct niu *np, 8779static int fill_phy_probe_info(struct niu *np,
8780 struct niu_parent *parent, 8780 struct niu_parent *parent,
8781 struct phy_probe_info *info) 8781 struct phy_probe_info *info)
8782{ 8782{
@@ -8819,7 +8819,7 @@ static int __devinit fill_phy_probe_info(struct niu *np,
8819 return err; 8819 return err;
8820} 8820}
8821 8821
8822static int __devinit walk_phys(struct niu *np, struct niu_parent *parent) 8822static int walk_phys(struct niu *np, struct niu_parent *parent)
8823{ 8823{
8824 struct phy_probe_info *info = &parent->phy_probe_info; 8824 struct phy_probe_info *info = &parent->phy_probe_info;
8825 int lowest_10g, lowest_1g; 8825 int lowest_10g, lowest_1g;
@@ -8948,7 +8948,7 @@ unknown_vg_1g_port:
8948 return -EINVAL; 8948 return -EINVAL;
8949} 8949}
8950 8950
8951static int __devinit niu_probe_ports(struct niu *np) 8951static int niu_probe_ports(struct niu *np)
8952{ 8952{
8953 struct niu_parent *parent = np->parent; 8953 struct niu_parent *parent = np->parent;
8954 int err, i; 8954 int err, i;
@@ -8969,7 +8969,7 @@ static int __devinit niu_probe_ports(struct niu *np)
8969 return 0; 8969 return 0;
8970} 8970}
8971 8971
8972static int __devinit niu_classifier_swstate_init(struct niu *np) 8972static int niu_classifier_swstate_init(struct niu *np)
8973{ 8973{
8974 struct niu_classifier *cp = &np->clas; 8974 struct niu_classifier *cp = &np->clas;
8975 8975
@@ -8981,7 +8981,7 @@ static int __devinit niu_classifier_swstate_init(struct niu *np)
8981 return fflp_early_init(np); 8981 return fflp_early_init(np);
8982} 8982}
8983 8983
8984static void __devinit niu_link_config_init(struct niu *np) 8984static void niu_link_config_init(struct niu *np)
8985{ 8985{
8986 struct niu_link_config *lp = &np->link_config; 8986 struct niu_link_config *lp = &np->link_config;
8987 8987
@@ -9006,7 +9006,7 @@ static void __devinit niu_link_config_init(struct niu *np)
9006#endif 9006#endif
9007} 9007}
9008 9008
9009static int __devinit niu_init_mac_ipp_pcs_base(struct niu *np) 9009static int niu_init_mac_ipp_pcs_base(struct niu *np)
9010{ 9010{
9011 switch (np->port) { 9011 switch (np->port) {
9012 case 0: 9012 case 0:
@@ -9045,7 +9045,7 @@ static int __devinit niu_init_mac_ipp_pcs_base(struct niu *np)
9045 return 0; 9045 return 0;
9046} 9046}
9047 9047
9048static void __devinit niu_try_msix(struct niu *np, u8 *ldg_num_map) 9048static void niu_try_msix(struct niu *np, u8 *ldg_num_map)
9049{ 9049{
9050 struct msix_entry msi_vec[NIU_NUM_LDG]; 9050 struct msix_entry msi_vec[NIU_NUM_LDG];
9051 struct niu_parent *parent = np->parent; 9051 struct niu_parent *parent = np->parent;
@@ -9084,7 +9084,7 @@ retry:
9084 np->num_ldg = num_irqs; 9084 np->num_ldg = num_irqs;
9085} 9085}
9086 9086
9087static int __devinit niu_n2_irq_init(struct niu *np, u8 *ldg_num_map) 9087static int niu_n2_irq_init(struct niu *np, u8 *ldg_num_map)
9088{ 9088{
9089#ifdef CONFIG_SPARC64 9089#ifdef CONFIG_SPARC64
9090 struct platform_device *op = np->op; 9090 struct platform_device *op = np->op;
@@ -9108,7 +9108,7 @@ static int __devinit niu_n2_irq_init(struct niu *np, u8 *ldg_num_map)
9108#endif 9108#endif
9109} 9109}
9110 9110
9111static int __devinit niu_ldg_init(struct niu *np) 9111static int niu_ldg_init(struct niu *np)
9112{ 9112{
9113 struct niu_parent *parent = np->parent; 9113 struct niu_parent *parent = np->parent;
9114 u8 ldg_num_map[NIU_NUM_LDG]; 9114 u8 ldg_num_map[NIU_NUM_LDG];
@@ -9225,13 +9225,13 @@ static int __devinit niu_ldg_init(struct niu *np)
9225 return 0; 9225 return 0;
9226} 9226}
9227 9227
9228static void __devexit niu_ldg_free(struct niu *np) 9228static void niu_ldg_free(struct niu *np)
9229{ 9229{
9230 if (np->flags & NIU_FLAGS_MSIX) 9230 if (np->flags & NIU_FLAGS_MSIX)
9231 pci_disable_msix(np->pdev); 9231 pci_disable_msix(np->pdev);
9232} 9232}
9233 9233
9234static int __devinit niu_get_of_props(struct niu *np) 9234static int niu_get_of_props(struct niu *np)
9235{ 9235{
9236#ifdef CONFIG_SPARC64 9236#ifdef CONFIG_SPARC64
9237 struct net_device *dev = np->dev; 9237 struct net_device *dev = np->dev;
@@ -9300,7 +9300,7 @@ static int __devinit niu_get_of_props(struct niu *np)
9300#endif 9300#endif
9301} 9301}
9302 9302
9303static int __devinit niu_get_invariants(struct niu *np) 9303static int niu_get_invariants(struct niu *np)
9304{ 9304{
9305 int err, have_props; 9305 int err, have_props;
9306 u32 offset; 9306 u32 offset;
@@ -9479,7 +9479,7 @@ static struct device_attribute niu_parent_attributes[] = {
9479 {} 9479 {}
9480}; 9480};
9481 9481
9482static struct niu_parent * __devinit niu_new_parent(struct niu *np, 9482static struct niu_parent *niu_new_parent(struct niu *np,
9483 union niu_parent_id *id, 9483 union niu_parent_id *id,
9484 u8 ptype) 9484 u8 ptype)
9485{ 9485{
@@ -9544,7 +9544,7 @@ fail_unregister:
9544 return NULL; 9544 return NULL;
9545} 9545}
9546 9546
9547static struct niu_parent * __devinit niu_get_parent(struct niu *np, 9547static struct niu_parent *niu_get_parent(struct niu *np,
9548 union niu_parent_id *id, 9548 union niu_parent_id *id,
9549 u8 ptype) 9549 u8 ptype)
9550{ 9550{
@@ -9662,7 +9662,7 @@ static const struct niu_ops niu_pci_ops = {
9662 .unmap_single = niu_pci_unmap_single, 9662 .unmap_single = niu_pci_unmap_single,
9663}; 9663};
9664 9664
9665static void __devinit niu_driver_version(void) 9665static void niu_driver_version(void)
9666{ 9666{
9667 static int niu_version_printed; 9667 static int niu_version_printed;
9668 9668
@@ -9670,7 +9670,7 @@ static void __devinit niu_driver_version(void)
9670 pr_info("%s", version); 9670 pr_info("%s", version);
9671} 9671}
9672 9672
9673static struct net_device * __devinit niu_alloc_and_init( 9673static struct net_device *niu_alloc_and_init(
9674 struct device *gen_dev, struct pci_dev *pdev, 9674 struct device *gen_dev, struct pci_dev *pdev,
9675 struct platform_device *op, const struct niu_ops *ops, 9675 struct platform_device *op, const struct niu_ops *ops,
9676 u8 port) 9676 u8 port)
@@ -9714,14 +9714,14 @@ static const struct net_device_ops niu_netdev_ops = {
9714 .ndo_change_mtu = niu_change_mtu, 9714 .ndo_change_mtu = niu_change_mtu,
9715}; 9715};
9716 9716
9717static void __devinit niu_assign_netdev_ops(struct net_device *dev) 9717static void niu_assign_netdev_ops(struct net_device *dev)
9718{ 9718{
9719 dev->netdev_ops = &niu_netdev_ops; 9719 dev->netdev_ops = &niu_netdev_ops;
9720 dev->ethtool_ops = &niu_ethtool_ops; 9720 dev->ethtool_ops = &niu_ethtool_ops;
9721 dev->watchdog_timeo = NIU_TX_TIMEOUT; 9721 dev->watchdog_timeo = NIU_TX_TIMEOUT;
9722} 9722}
9723 9723
9724static void __devinit niu_device_announce(struct niu *np) 9724static void niu_device_announce(struct niu *np)
9725{ 9725{
9726 struct net_device *dev = np->dev; 9726 struct net_device *dev = np->dev;
9727 9727
@@ -9750,13 +9750,13 @@ static void __devinit niu_device_announce(struct niu *np)
9750 } 9750 }
9751} 9751}
9752 9752
9753static void __devinit niu_set_basic_features(struct net_device *dev) 9753static void niu_set_basic_features(struct net_device *dev)
9754{ 9754{
9755 dev->hw_features = NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXHASH; 9755 dev->hw_features = NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXHASH;
9756 dev->features |= dev->hw_features | NETIF_F_RXCSUM; 9756 dev->features |= dev->hw_features | NETIF_F_RXCSUM;
9757} 9757}
9758 9758
9759static int __devinit niu_pci_init_one(struct pci_dev *pdev, 9759static int niu_pci_init_one(struct pci_dev *pdev,
9760 const struct pci_device_id *ent) 9760 const struct pci_device_id *ent)
9761{ 9761{
9762 union niu_parent_id parent_id; 9762 union niu_parent_id parent_id;
@@ -9895,7 +9895,7 @@ err_out_disable_pdev:
9895 return err; 9895 return err;
9896} 9896}
9897 9897
9898static void __devexit niu_pci_remove_one(struct pci_dev *pdev) 9898static void niu_pci_remove_one(struct pci_dev *pdev)
9899{ 9899{
9900 struct net_device *dev = pci_get_drvdata(pdev); 9900 struct net_device *dev = pci_get_drvdata(pdev);
9901 9901
@@ -9980,7 +9980,7 @@ static struct pci_driver niu_pci_driver = {
9980 .name = DRV_MODULE_NAME, 9980 .name = DRV_MODULE_NAME,
9981 .id_table = niu_pci_tbl, 9981 .id_table = niu_pci_tbl,
9982 .probe = niu_pci_init_one, 9982 .probe = niu_pci_init_one,
9983 .remove = __devexit_p(niu_pci_remove_one), 9983 .remove = niu_pci_remove_one,
9984 .suspend = niu_suspend, 9984 .suspend = niu_suspend,
9985 .resume = niu_resume, 9985 .resume = niu_resume,
9986}; 9986};
@@ -10044,7 +10044,7 @@ static const struct niu_ops niu_phys_ops = {
10044 .unmap_single = niu_phys_unmap_single, 10044 .unmap_single = niu_phys_unmap_single,
10045}; 10045};
10046 10046
10047static int __devinit niu_of_probe(struct platform_device *op) 10047static int niu_of_probe(struct platform_device *op)
10048{ 10048{
10049 union niu_parent_id parent_id; 10049 union niu_parent_id parent_id;
10050 struct net_device *dev; 10050 struct net_device *dev;
@@ -10158,7 +10158,7 @@ err_out:
10158 return err; 10158 return err;
10159} 10159}
10160 10160
10161static int __devexit niu_of_remove(struct platform_device *op) 10161static int niu_of_remove(struct platform_device *op)
10162{ 10162{
10163 struct net_device *dev = dev_get_drvdata(&op->dev); 10163 struct net_device *dev = dev_get_drvdata(&op->dev);
10164 10164
@@ -10211,7 +10211,7 @@ static struct platform_driver niu_of_driver = {
10211 .of_match_table = niu_match, 10211 .of_match_table = niu_match,
10212 }, 10212 },
10213 .probe = niu_of_probe, 10213 .probe = niu_of_probe,
10214 .remove = __devexit_p(niu_of_remove), 10214 .remove = niu_of_remove,
10215}; 10215};
10216 10216
10217#endif /* CONFIG_SPARC64 */ 10217#endif /* CONFIG_SPARC64 */
diff --git a/drivers/net/ethernet/sun/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c
index c9c977bf02ac..8fda91009226 100644
--- a/drivers/net/ethernet/sun/sunbmac.c
+++ b/drivers/net/ethernet/sun/sunbmac.c
@@ -1074,7 +1074,7 @@ static const struct net_device_ops bigmac_ops = {
1074 .ndo_validate_addr = eth_validate_addr, 1074 .ndo_validate_addr = eth_validate_addr,
1075}; 1075};
1076 1076
1077static int __devinit bigmac_ether_init(struct platform_device *op, 1077static int bigmac_ether_init(struct platform_device *op,
1078 struct platform_device *qec_op) 1078 struct platform_device *qec_op)
1079{ 1079{
1080 static int version_printed; 1080 static int version_printed;
@@ -1233,7 +1233,7 @@ fail_and_cleanup:
1233/* QEC can be the parent of either QuadEthernet or a BigMAC. We want 1233/* QEC can be the parent of either QuadEthernet or a BigMAC. We want
1234 * the latter. 1234 * the latter.
1235 */ 1235 */
1236static int __devinit bigmac_sbus_probe(struct platform_device *op) 1236static int bigmac_sbus_probe(struct platform_device *op)
1237{ 1237{
1238 struct device *parent = op->dev.parent; 1238 struct device *parent = op->dev.parent;
1239 struct platform_device *qec_op; 1239 struct platform_device *qec_op;
@@ -1243,7 +1243,7 @@ static int __devinit bigmac_sbus_probe(struct platform_device *op)
1243 return bigmac_ether_init(op, qec_op); 1243 return bigmac_ether_init(op, qec_op);
1244} 1244}
1245 1245
1246static int __devexit bigmac_sbus_remove(struct platform_device *op) 1246static int bigmac_sbus_remove(struct platform_device *op)
1247{ 1247{
1248 struct bigmac *bp = dev_get_drvdata(&op->dev); 1248 struct bigmac *bp = dev_get_drvdata(&op->dev);
1249 struct device *parent = op->dev.parent; 1249 struct device *parent = op->dev.parent;
@@ -1286,7 +1286,7 @@ static struct platform_driver bigmac_sbus_driver = {
1286 .of_match_table = bigmac_sbus_match, 1286 .of_match_table = bigmac_sbus_match,
1287 }, 1287 },
1288 .probe = bigmac_sbus_probe, 1288 .probe = bigmac_sbus_probe,
1289 .remove = __devexit_p(bigmac_sbus_remove), 1289 .remove = bigmac_sbus_remove,
1290}; 1290};
1291 1291
1292module_platform_driver(bigmac_sbus_driver); 1292module_platform_driver(bigmac_sbus_driver);
diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c
index 6c8695ec7cb9..c7bc0561b8eb 100644
--- a/drivers/net/ethernet/sun/sungem.c
+++ b/drivers/net/ethernet/sun/sungem.c
@@ -77,7 +77,7 @@
77#define DRV_VERSION "1.0" 77#define DRV_VERSION "1.0"
78#define DRV_AUTHOR "David S. Miller <davem@redhat.com>" 78#define DRV_AUTHOR "David S. Miller <davem@redhat.com>"
79 79
80static char version[] __devinitdata = 80static char version[] =
81 DRV_NAME ".c:v" DRV_VERSION " " DRV_AUTHOR "\n"; 81 DRV_NAME ".c:v" DRV_VERSION " " DRV_AUTHOR "\n";
82 82
83MODULE_AUTHOR(DRV_AUTHOR); 83MODULE_AUTHOR(DRV_AUTHOR);
@@ -2763,7 +2763,7 @@ static void get_gem_mac_nonobp(struct pci_dev *pdev, unsigned char *dev_addr)
2763} 2763}
2764#endif /* not Sparc and not PPC */ 2764#endif /* not Sparc and not PPC */
2765 2765
2766static int __devinit gem_get_device_address(struct gem *gp) 2766static int gem_get_device_address(struct gem *gp)
2767{ 2767{
2768#if defined(CONFIG_SPARC) || defined(CONFIG_PPC_PMAC) 2768#if defined(CONFIG_SPARC) || defined(CONFIG_PPC_PMAC)
2769 struct net_device *dev = gp->dev; 2769 struct net_device *dev = gp->dev;
@@ -2827,7 +2827,7 @@ static const struct net_device_ops gem_netdev_ops = {
2827#endif 2827#endif
2828}; 2828};
2829 2829
2830static int __devinit gem_init_one(struct pci_dev *pdev, 2830static int gem_init_one(struct pci_dev *pdev,
2831 const struct pci_device_id *ent) 2831 const struct pci_device_id *ent)
2832{ 2832{
2833 unsigned long gemreg_base, gemreg_len; 2833 unsigned long gemreg_base, gemreg_len;
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c
index 73f341b8befb..43babc33a2c9 100644
--- a/drivers/net/ethernet/sun/sunhme.c
+++ b/drivers/net/ethernet/sun/sunhme.c
@@ -2499,7 +2499,7 @@ static int hme_version_printed;
2499 * 2499 *
2500 * Return NULL on failure. 2500 * Return NULL on failure.
2501 */ 2501 */
2502static struct quattro * __devinit quattro_sbus_find(struct platform_device *child) 2502static struct quattro *quattro_sbus_find(struct platform_device *child)
2503{ 2503{
2504 struct device *parent = child->dev.parent; 2504 struct device *parent = child->dev.parent;
2505 struct platform_device *op; 2505 struct platform_device *op;
@@ -2580,7 +2580,7 @@ static void quattro_sbus_free_irqs(void)
2580#endif /* CONFIG_SBUS */ 2580#endif /* CONFIG_SBUS */
2581 2581
2582#ifdef CONFIG_PCI 2582#ifdef CONFIG_PCI
2583static struct quattro * __devinit quattro_pci_find(struct pci_dev *pdev) 2583static struct quattro *quattro_pci_find(struct pci_dev *pdev)
2584{ 2584{
2585 struct pci_dev *bdev = pdev->bus->self; 2585 struct pci_dev *bdev = pdev->bus->self;
2586 struct quattro *qp; 2586 struct quattro *qp;
@@ -2623,7 +2623,7 @@ static const struct net_device_ops hme_netdev_ops = {
2623}; 2623};
2624 2624
2625#ifdef CONFIG_SBUS 2625#ifdef CONFIG_SBUS
2626static int __devinit happy_meal_sbus_probe_one(struct platform_device *op, int is_qfe) 2626static int happy_meal_sbus_probe_one(struct platform_device *op, int is_qfe)
2627{ 2627{
2628 struct device_node *dp = op->dev.of_node, *sbus_dp; 2628 struct device_node *dp = op->dev.of_node, *sbus_dp;
2629 struct quattro *qp = NULL; 2629 struct quattro *qp = NULL;
@@ -2927,7 +2927,7 @@ static void get_hme_mac_nonsparc(struct pci_dev *pdev, unsigned char *dev_addr)
2927} 2927}
2928#endif /* !(CONFIG_SPARC) */ 2928#endif /* !(CONFIG_SPARC) */
2929 2929
2930static int __devinit happy_meal_pci_probe(struct pci_dev *pdev, 2930static int happy_meal_pci_probe(struct pci_dev *pdev,
2931 const struct pci_device_id *ent) 2931 const struct pci_device_id *ent)
2932{ 2932{
2933 struct quattro *qp = NULL; 2933 struct quattro *qp = NULL;
@@ -3162,7 +3162,7 @@ err_out:
3162 return err; 3162 return err;
3163} 3163}
3164 3164
3165static void __devexit happy_meal_pci_remove(struct pci_dev *pdev) 3165static void happy_meal_pci_remove(struct pci_dev *pdev)
3166{ 3166{
3167 struct happy_meal *hp = dev_get_drvdata(&pdev->dev); 3167 struct happy_meal *hp = dev_get_drvdata(&pdev->dev);
3168 struct net_device *net_dev = hp->dev; 3168 struct net_device *net_dev = hp->dev;
@@ -3190,7 +3190,7 @@ static struct pci_driver hme_pci_driver = {
3190 .name = "hme", 3190 .name = "hme",
3191 .id_table = happymeal_pci_ids, 3191 .id_table = happymeal_pci_ids,
3192 .probe = happy_meal_pci_probe, 3192 .probe = happy_meal_pci_probe,
3193 .remove = __devexit_p(happy_meal_pci_remove), 3193 .remove = happy_meal_pci_remove,
3194}; 3194};
3195 3195
3196static int __init happy_meal_pci_init(void) 3196static int __init happy_meal_pci_init(void)
@@ -3216,7 +3216,7 @@ static void happy_meal_pci_exit(void)
3216 3216
3217#ifdef CONFIG_SBUS 3217#ifdef CONFIG_SBUS
3218static const struct of_device_id hme_sbus_match[]; 3218static const struct of_device_id hme_sbus_match[];
3219static int __devinit hme_sbus_probe(struct platform_device *op) 3219static int hme_sbus_probe(struct platform_device *op)
3220{ 3220{
3221 const struct of_device_id *match; 3221 const struct of_device_id *match;
3222 struct device_node *dp = op->dev.of_node; 3222 struct device_node *dp = op->dev.of_node;
@@ -3234,7 +3234,7 @@ static int __devinit hme_sbus_probe(struct platform_device *op)
3234 return happy_meal_sbus_probe_one(op, is_qfe); 3234 return happy_meal_sbus_probe_one(op, is_qfe);
3235} 3235}
3236 3236
3237static int __devexit hme_sbus_remove(struct platform_device *op) 3237static int hme_sbus_remove(struct platform_device *op)
3238{ 3238{
3239 struct happy_meal *hp = dev_get_drvdata(&op->dev); 3239 struct happy_meal *hp = dev_get_drvdata(&op->dev);
3240 struct net_device *net_dev = hp->dev; 3240 struct net_device *net_dev = hp->dev;
@@ -3284,7 +3284,7 @@ static struct platform_driver hme_sbus_driver = {
3284 .of_match_table = hme_sbus_match, 3284 .of_match_table = hme_sbus_match,
3285 }, 3285 },
3286 .probe = hme_sbus_probe, 3286 .probe = hme_sbus_probe,
3287 .remove = __devexit_p(hme_sbus_remove), 3287 .remove = hme_sbus_remove,
3288}; 3288};
3289 3289
3290static int __init happy_meal_sbus_init(void) 3290static int __init happy_meal_sbus_init(void)
diff --git a/drivers/net/ethernet/sun/sunqe.c b/drivers/net/ethernet/sun/sunqe.c
index aeded7ff1c8f..1dcee6915843 100644
--- a/drivers/net/ethernet/sun/sunqe.c
+++ b/drivers/net/ethernet/sun/sunqe.c
@@ -744,7 +744,7 @@ static void qec_init_once(struct sunqec *qecp, struct platform_device *op)
744 qecp->gregs + GLOB_RSIZE); 744 qecp->gregs + GLOB_RSIZE);
745} 745}
746 746
747static u8 __devinit qec_get_burst(struct device_node *dp) 747static u8 qec_get_burst(struct device_node *dp)
748{ 748{
749 u8 bsizes, bsizes_more; 749 u8 bsizes, bsizes_more;
750 750
@@ -764,7 +764,7 @@ static u8 __devinit qec_get_burst(struct device_node *dp)
764 return bsizes; 764 return bsizes;
765} 765}
766 766
767static struct sunqec * __devinit get_qec(struct platform_device *child) 767static struct sunqec *get_qec(struct platform_device *child)
768{ 768{
769 struct platform_device *op = to_platform_device(child->dev.parent); 769 struct platform_device *op = to_platform_device(child->dev.parent);
770 struct sunqec *qecp; 770 struct sunqec *qecp;
@@ -830,7 +830,7 @@ static const struct net_device_ops qec_ops = {
830 .ndo_validate_addr = eth_validate_addr, 830 .ndo_validate_addr = eth_validate_addr,
831}; 831};
832 832
833static int __devinit qec_ether_init(struct platform_device *op) 833static int qec_ether_init(struct platform_device *op)
834{ 834{
835 static unsigned version_printed; 835 static unsigned version_printed;
836 struct net_device *dev; 836 struct net_device *dev;
@@ -929,12 +929,12 @@ fail:
929 return res; 929 return res;
930} 930}
931 931
932static int __devinit qec_sbus_probe(struct platform_device *op) 932static int qec_sbus_probe(struct platform_device *op)
933{ 933{
934 return qec_ether_init(op); 934 return qec_ether_init(op);
935} 935}
936 936
937static int __devexit qec_sbus_remove(struct platform_device *op) 937static int qec_sbus_remove(struct platform_device *op)
938{ 938{
939 struct sunqe *qp = dev_get_drvdata(&op->dev); 939 struct sunqe *qp = dev_get_drvdata(&op->dev);
940 struct net_device *net_dev = qp->dev; 940 struct net_device *net_dev = qp->dev;
@@ -971,7 +971,7 @@ static struct platform_driver qec_sbus_driver = {
971 .of_match_table = qec_sbus_match, 971 .of_match_table = qec_sbus_match,
972 }, 972 },
973 .probe = qec_sbus_probe, 973 .probe = qec_sbus_probe,
974 .remove = __devexit_p(qec_sbus_remove), 974 .remove = qec_sbus_remove,
975}; 975};
976 976
977static int __init qec_init(void) 977static int __init qec_init(void)
diff --git a/drivers/net/ethernet/sun/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c
index a108db35924e..2852b7099eee 100644
--- a/drivers/net/ethernet/sun/sunvnet.c
+++ b/drivers/net/ethernet/sun/sunvnet.c
@@ -25,7 +25,7 @@
25#define DRV_MODULE_VERSION "1.0" 25#define DRV_MODULE_VERSION "1.0"
26#define DRV_MODULE_RELDATE "June 25, 2007" 26#define DRV_MODULE_RELDATE "June 25, 2007"
27 27
28static char version[] __devinitdata = 28static char version[] =
29 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 29 DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
30MODULE_AUTHOR("David S. Miller (davem@davemloft.net)"); 30MODULE_AUTHOR("David S. Miller (davem@davemloft.net)");
31MODULE_DESCRIPTION("Sun LDOM virtual network driver"); 31MODULE_DESCRIPTION("Sun LDOM virtual network driver");
@@ -937,7 +937,7 @@ static void vnet_port_free_tx_bufs(struct vnet_port *port)
937 } 937 }
938} 938}
939 939
940static int __devinit vnet_port_alloc_tx_bufs(struct vnet_port *port) 940static int vnet_port_alloc_tx_bufs(struct vnet_port *port)
941{ 941{
942 struct vio_dring_state *dr; 942 struct vio_dring_state *dr;
943 unsigned long len; 943 unsigned long len;
@@ -1019,7 +1019,7 @@ static const struct net_device_ops vnet_ops = {
1019 .ndo_start_xmit = vnet_start_xmit, 1019 .ndo_start_xmit = vnet_start_xmit,
1020}; 1020};
1021 1021
1022static struct vnet * __devinit vnet_new(const u64 *local_mac) 1022static struct vnet *vnet_new(const u64 *local_mac)
1023{ 1023{
1024 struct net_device *dev; 1024 struct net_device *dev;
1025 struct vnet *vp; 1025 struct vnet *vp;
@@ -1067,7 +1067,7 @@ err_out_free_dev:
1067 return ERR_PTR(err); 1067 return ERR_PTR(err);
1068} 1068}
1069 1069
1070static struct vnet * __devinit vnet_find_or_create(const u64 *local_mac) 1070static struct vnet *vnet_find_or_create(const u64 *local_mac)
1071{ 1071{
1072 struct vnet *iter, *vp; 1072 struct vnet *iter, *vp;
1073 1073
@@ -1088,7 +1088,7 @@ static struct vnet * __devinit vnet_find_or_create(const u64 *local_mac)
1088 1088
1089static const char *local_mac_prop = "local-mac-address"; 1089static const char *local_mac_prop = "local-mac-address";
1090 1090
1091static struct vnet * __devinit vnet_find_parent(struct mdesc_handle *hp, 1091static struct vnet *vnet_find_parent(struct mdesc_handle *hp,
1092 u64 port_node) 1092 u64 port_node)
1093{ 1093{
1094 const u64 *local_mac = NULL; 1094 const u64 *local_mac = NULL;
@@ -1125,14 +1125,14 @@ static struct vio_driver_ops vnet_vio_ops = {
1125 .handshake_complete = vnet_handshake_complete, 1125 .handshake_complete = vnet_handshake_complete,
1126}; 1126};
1127 1127
1128static void __devinit print_version(void) 1128static void print_version(void)
1129{ 1129{
1130 printk_once(KERN_INFO "%s", version); 1130 printk_once(KERN_INFO "%s", version);
1131} 1131}
1132 1132
1133const char *remote_macaddr_prop = "remote-mac-address"; 1133const char *remote_macaddr_prop = "remote-mac-address";
1134 1134
1135static int __devinit vnet_port_probe(struct vio_dev *vdev, 1135static int vnet_port_probe(struct vio_dev *vdev,
1136 const struct vio_device_id *id) 1136 const struct vio_device_id *id)
1137{ 1137{
1138 struct mdesc_handle *hp; 1138 struct mdesc_handle *hp;