diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-03 09:23:13 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 14:16:43 -0500 |
commit | fe17dc1e2bae8599aa034e678f7bbfd1f98e5a15 (patch) | |
tree | c78de9bf614eff711d2e003fe3a8896c09b96805 /drivers/net/ethernet/ibm/emac | |
parent | e11787a2313c41a1f4469d797b2d9bc6fe0642b1 (diff) |
ibm/emac: 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/ibm/emac')
-rw-r--r-- | drivers/net/ethernet/ibm/emac/core.c | 18 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/mal.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/rgmii.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/tah.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/zmii.c | 6 |
5 files changed, 21 insertions, 21 deletions
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index a0fe6e3fce61..c791ad3907b2 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c | |||
@@ -2261,7 +2261,7 @@ struct emac_depentry { | |||
2261 | #define EMAC_DEP_PREV_IDX 5 | 2261 | #define EMAC_DEP_PREV_IDX 5 |
2262 | #define EMAC_DEP_COUNT 6 | 2262 | #define EMAC_DEP_COUNT 6 |
2263 | 2263 | ||
2264 | static int __devinit emac_check_deps(struct emac_instance *dev, | 2264 | static int emac_check_deps(struct emac_instance *dev, |
2265 | struct emac_depentry *deps) | 2265 | struct emac_depentry *deps) |
2266 | { | 2266 | { |
2267 | int i, there = 0; | 2267 | int i, there = 0; |
@@ -2314,7 +2314,7 @@ static void emac_put_deps(struct emac_instance *dev) | |||
2314 | of_dev_put(dev->tah_dev); | 2314 | of_dev_put(dev->tah_dev); |
2315 | } | 2315 | } |
2316 | 2316 | ||
2317 | static int __devinit emac_of_bus_notify(struct notifier_block *nb, | 2317 | static int emac_of_bus_notify(struct notifier_block *nb, |
2318 | unsigned long action, void *data) | 2318 | unsigned long action, void *data) |
2319 | { | 2319 | { |
2320 | /* We are only intereted in device addition */ | 2320 | /* We are only intereted in device addition */ |
@@ -2323,11 +2323,11 @@ static int __devinit emac_of_bus_notify(struct notifier_block *nb, | |||
2323 | return 0; | 2323 | return 0; |
2324 | } | 2324 | } |
2325 | 2325 | ||
2326 | static struct notifier_block emac_of_bus_notifier __devinitdata = { | 2326 | static struct notifier_block emac_of_bus_notifier = { |
2327 | .notifier_call = emac_of_bus_notify | 2327 | .notifier_call = emac_of_bus_notify |
2328 | }; | 2328 | }; |
2329 | 2329 | ||
2330 | static int __devinit emac_wait_deps(struct emac_instance *dev) | 2330 | static int emac_wait_deps(struct emac_instance *dev) |
2331 | { | 2331 | { |
2332 | struct emac_depentry deps[EMAC_DEP_COUNT]; | 2332 | struct emac_depentry deps[EMAC_DEP_COUNT]; |
2333 | int i, err; | 2333 | int i, err; |
@@ -2367,7 +2367,7 @@ static int __devinit emac_wait_deps(struct emac_instance *dev) | |||
2367 | return err; | 2367 | return err; |
2368 | } | 2368 | } |
2369 | 2369 | ||
2370 | static int __devinit emac_read_uint_prop(struct device_node *np, const char *name, | 2370 | static int emac_read_uint_prop(struct device_node *np, const char *name, |
2371 | u32 *val, int fatal) | 2371 | u32 *val, int fatal) |
2372 | { | 2372 | { |
2373 | int len; | 2373 | int len; |
@@ -2382,7 +2382,7 @@ static int __devinit emac_read_uint_prop(struct device_node *np, const char *nam | |||
2382 | return 0; | 2382 | return 0; |
2383 | } | 2383 | } |
2384 | 2384 | ||
2385 | static int __devinit emac_init_phy(struct emac_instance *dev) | 2385 | static int emac_init_phy(struct emac_instance *dev) |
2386 | { | 2386 | { |
2387 | struct device_node *np = dev->ofdev->dev.of_node; | 2387 | struct device_node *np = dev->ofdev->dev.of_node; |
2388 | struct net_device *ndev = dev->ndev; | 2388 | struct net_device *ndev = dev->ndev; |
@@ -2518,7 +2518,7 @@ static int __devinit emac_init_phy(struct emac_instance *dev) | |||
2518 | return 0; | 2518 | return 0; |
2519 | } | 2519 | } |
2520 | 2520 | ||
2521 | static int __devinit emac_init_config(struct emac_instance *dev) | 2521 | static int emac_init_config(struct emac_instance *dev) |
2522 | { | 2522 | { |
2523 | struct device_node *np = dev->ofdev->dev.of_node; | 2523 | struct device_node *np = dev->ofdev->dev.of_node; |
2524 | const void *p; | 2524 | const void *p; |
@@ -2703,7 +2703,7 @@ static const struct net_device_ops emac_gige_netdev_ops = { | |||
2703 | .ndo_change_mtu = emac_change_mtu, | 2703 | .ndo_change_mtu = emac_change_mtu, |
2704 | }; | 2704 | }; |
2705 | 2705 | ||
2706 | static int __devinit emac_probe(struct platform_device *ofdev) | 2706 | static int emac_probe(struct platform_device *ofdev) |
2707 | { | 2707 | { |
2708 | struct net_device *ndev; | 2708 | struct net_device *ndev; |
2709 | struct emac_instance *dev; | 2709 | struct emac_instance *dev; |
@@ -2930,7 +2930,7 @@ static int __devinit emac_probe(struct platform_device *ofdev) | |||
2930 | return err; | 2930 | return err; |
2931 | } | 2931 | } |
2932 | 2932 | ||
2933 | static int __devexit emac_remove(struct platform_device *ofdev) | 2933 | static int emac_remove(struct platform_device *ofdev) |
2934 | { | 2934 | { |
2935 | struct emac_instance *dev = dev_get_drvdata(&ofdev->dev); | 2935 | struct emac_instance *dev = dev_get_drvdata(&ofdev->dev); |
2936 | 2936 | ||
diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c index 84c6b6cf9c14..8becaaf6eb5c 100644 --- a/drivers/net/ethernet/ibm/emac/mal.c +++ b/drivers/net/ethernet/ibm/emac/mal.c | |||
@@ -33,7 +33,7 @@ | |||
33 | 33 | ||
34 | static int mal_count; | 34 | static int mal_count; |
35 | 35 | ||
36 | int __devinit mal_register_commac(struct mal_instance *mal, | 36 | int mal_register_commac(struct mal_instance *mal, |
37 | struct mal_commac *commac) | 37 | struct mal_commac *commac) |
38 | { | 38 | { |
39 | unsigned long flags; | 39 | unsigned long flags; |
@@ -517,7 +517,7 @@ void *mal_dump_regs(struct mal_instance *mal, void *buf) | |||
517 | return regs + 1; | 517 | return regs + 1; |
518 | } | 518 | } |
519 | 519 | ||
520 | static int __devinit mal_probe(struct platform_device *ofdev) | 520 | static int mal_probe(struct platform_device *ofdev) |
521 | { | 521 | { |
522 | struct mal_instance *mal; | 522 | struct mal_instance *mal; |
523 | int err = 0, i, bd_size; | 523 | int err = 0, i, bd_size; |
@@ -729,7 +729,7 @@ static int __devinit mal_probe(struct platform_device *ofdev) | |||
729 | return err; | 729 | return err; |
730 | } | 730 | } |
731 | 731 | ||
732 | static int __devexit mal_remove(struct platform_device *ofdev) | 732 | static int mal_remove(struct platform_device *ofdev) |
733 | { | 733 | { |
734 | struct mal_instance *mal = dev_get_drvdata(&ofdev->dev); | 734 | struct mal_instance *mal = dev_get_drvdata(&ofdev->dev); |
735 | 735 | ||
diff --git a/drivers/net/ethernet/ibm/emac/rgmii.c b/drivers/net/ethernet/ibm/emac/rgmii.c index d3123282e18e..39251765b55d 100644 --- a/drivers/net/ethernet/ibm/emac/rgmii.c +++ b/drivers/net/ethernet/ibm/emac/rgmii.c | |||
@@ -93,7 +93,7 @@ static inline u32 rgmii_mode_mask(int mode, int input) | |||
93 | } | 93 | } |
94 | } | 94 | } |
95 | 95 | ||
96 | int __devinit rgmii_attach(struct platform_device *ofdev, int input, int mode) | 96 | int rgmii_attach(struct platform_device *ofdev, int input, int mode) |
97 | { | 97 | { |
98 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 98 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
99 | struct rgmii_regs __iomem *p = dev->base; | 99 | struct rgmii_regs __iomem *p = dev->base; |
@@ -228,7 +228,7 @@ void *rgmii_dump_regs(struct platform_device *ofdev, void *buf) | |||
228 | } | 228 | } |
229 | 229 | ||
230 | 230 | ||
231 | static int __devinit rgmii_probe(struct platform_device *ofdev) | 231 | static int rgmii_probe(struct platform_device *ofdev) |
232 | { | 232 | { |
233 | struct device_node *np = ofdev->dev.of_node; | 233 | struct device_node *np = ofdev->dev.of_node; |
234 | struct rgmii_instance *dev; | 234 | struct rgmii_instance *dev; |
@@ -289,7 +289,7 @@ static int __devinit rgmii_probe(struct platform_device *ofdev) | |||
289 | return rc; | 289 | return rc; |
290 | } | 290 | } |
291 | 291 | ||
292 | static int __devexit rgmii_remove(struct platform_device *ofdev) | 292 | static int rgmii_remove(struct platform_device *ofdev) |
293 | { | 293 | { |
294 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 294 | struct rgmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
295 | 295 | ||
diff --git a/drivers/net/ethernet/ibm/emac/tah.c b/drivers/net/ethernet/ibm/emac/tah.c index 872912ef518d..795f1393e2b6 100644 --- a/drivers/net/ethernet/ibm/emac/tah.c +++ b/drivers/net/ethernet/ibm/emac/tah.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include "emac.h" | 23 | #include "emac.h" |
24 | #include "core.h" | 24 | #include "core.h" |
25 | 25 | ||
26 | int __devinit tah_attach(struct platform_device *ofdev, int channel) | 26 | int tah_attach(struct platform_device *ofdev, int channel) |
27 | { | 27 | { |
28 | struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); | 28 | struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); |
29 | 29 | ||
@@ -87,7 +87,7 @@ void *tah_dump_regs(struct platform_device *ofdev, void *buf) | |||
87 | return regs + 1; | 87 | return regs + 1; |
88 | } | 88 | } |
89 | 89 | ||
90 | static int __devinit tah_probe(struct platform_device *ofdev) | 90 | static int tah_probe(struct platform_device *ofdev) |
91 | { | 91 | { |
92 | struct device_node *np = ofdev->dev.of_node; | 92 | struct device_node *np = ofdev->dev.of_node; |
93 | struct tah_instance *dev; | 93 | struct tah_instance *dev; |
@@ -135,7 +135,7 @@ static int __devinit tah_probe(struct platform_device *ofdev) | |||
135 | return rc; | 135 | return rc; |
136 | } | 136 | } |
137 | 137 | ||
138 | static int __devexit tah_remove(struct platform_device *ofdev) | 138 | static int tah_remove(struct platform_device *ofdev) |
139 | { | 139 | { |
140 | struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); | 140 | struct tah_instance *dev = dev_get_drvdata(&ofdev->dev); |
141 | 141 | ||
diff --git a/drivers/net/ethernet/ibm/emac/zmii.c b/drivers/net/ethernet/ibm/emac/zmii.c index 415e9b4d5408..f91202f42125 100644 --- a/drivers/net/ethernet/ibm/emac/zmii.c +++ b/drivers/net/ethernet/ibm/emac/zmii.c | |||
@@ -82,7 +82,7 @@ static inline u32 zmii_mode_mask(int mode, int input) | |||
82 | } | 82 | } |
83 | } | 83 | } |
84 | 84 | ||
85 | int __devinit zmii_attach(struct platform_device *ofdev, int input, int *mode) | 85 | int zmii_attach(struct platform_device *ofdev, int input, int *mode) |
86 | { | 86 | { |
87 | struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 87 | struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
88 | struct zmii_regs __iomem *p = dev->base; | 88 | struct zmii_regs __iomem *p = dev->base; |
@@ -231,7 +231,7 @@ void *zmii_dump_regs(struct platform_device *ofdev, void *buf) | |||
231 | return regs + 1; | 231 | return regs + 1; |
232 | } | 232 | } |
233 | 233 | ||
234 | static int __devinit zmii_probe(struct platform_device *ofdev) | 234 | static int zmii_probe(struct platform_device *ofdev) |
235 | { | 235 | { |
236 | struct device_node *np = ofdev->dev.of_node; | 236 | struct device_node *np = ofdev->dev.of_node; |
237 | struct zmii_instance *dev; | 237 | struct zmii_instance *dev; |
@@ -282,7 +282,7 @@ static int __devinit zmii_probe(struct platform_device *ofdev) | |||
282 | return rc; | 282 | return rc; |
283 | } | 283 | } |
284 | 284 | ||
285 | static int __devexit zmii_remove(struct platform_device *ofdev) | 285 | static int zmii_remove(struct platform_device *ofdev) |
286 | { | 286 | { |
287 | struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); | 287 | struct zmii_instance *dev = dev_get_drvdata(&ofdev->dev); |
288 | 288 | ||