aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-12-03 09:24:14 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-03 14:16:56 -0500
commit633d1594974b33a673a9eaf141d557e176202d8f (patch)
tree2769a66f51ecf59aa6b9892e74cf74591d1e9b0c /drivers/net/phy
parent45ac936c3ec93f347cfb7652bd7b332dc0c9b2e8 (diff)
net/phy: 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/phy')
-rw-r--r--drivers/net/phy/mdio-gpio.c10
-rw-r--r--drivers/net/phy/mdio-mux-gpio.c6
-rw-r--r--drivers/net/phy/mdio-mux-mmioreg.c6
-rw-r--r--drivers/net/phy/mdio-octeon.c6
-rw-r--r--drivers/net/phy/spi_ks8995.c6
5 files changed, 17 insertions, 17 deletions
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c
index 2ed1140df3e9..36fe08ac74bd 100644
--- a/drivers/net/phy/mdio-gpio.c
+++ b/drivers/net/phy/mdio-gpio.c
@@ -103,7 +103,7 @@ static struct mdiobb_ops mdio_gpio_ops = {
103 .get_mdio_data = mdio_get, 103 .get_mdio_data = mdio_get,
104}; 104};
105 105
106static struct mii_bus * __devinit mdio_gpio_bus_init(struct device *dev, 106static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
107 struct mdio_gpio_platform_data *pdata, 107 struct mdio_gpio_platform_data *pdata,
108 int bus_id) 108 int bus_id)
109{ 109{
@@ -173,7 +173,7 @@ static void mdio_gpio_bus_deinit(struct device *dev)
173 kfree(bitbang); 173 kfree(bitbang);
174} 174}
175 175
176static void __devexit mdio_gpio_bus_destroy(struct device *dev) 176static void mdio_gpio_bus_destroy(struct device *dev)
177{ 177{
178 struct mii_bus *bus = dev_get_drvdata(dev); 178 struct mii_bus *bus = dev_get_drvdata(dev);
179 179
@@ -181,7 +181,7 @@ static void __devexit mdio_gpio_bus_destroy(struct device *dev)
181 mdio_gpio_bus_deinit(dev); 181 mdio_gpio_bus_deinit(dev);
182} 182}
183 183
184static int __devinit mdio_gpio_probe(struct platform_device *pdev) 184static int mdio_gpio_probe(struct platform_device *pdev)
185{ 185{
186 struct mdio_gpio_platform_data *pdata; 186 struct mdio_gpio_platform_data *pdata;
187 struct mii_bus *new_bus; 187 struct mii_bus *new_bus;
@@ -213,7 +213,7 @@ static int __devinit mdio_gpio_probe(struct platform_device *pdev)
213 return ret; 213 return ret;
214} 214}
215 215
216static int __devexit mdio_gpio_remove(struct platform_device *pdev) 216static int mdio_gpio_remove(struct platform_device *pdev)
217{ 217{
218 mdio_gpio_bus_destroy(&pdev->dev); 218 mdio_gpio_bus_destroy(&pdev->dev);
219 219
@@ -227,7 +227,7 @@ static struct of_device_id mdio_gpio_of_match[] = {
227 227
228static struct platform_driver mdio_gpio_driver = { 228static struct platform_driver mdio_gpio_driver = {
229 .probe = mdio_gpio_probe, 229 .probe = mdio_gpio_probe,
230 .remove = __devexit_p(mdio_gpio_remove), 230 .remove = mdio_gpio_remove,
231 .driver = { 231 .driver = {
232 .name = "mdio-gpio", 232 .name = "mdio-gpio",
233 .owner = THIS_MODULE, 233 .owner = THIS_MODULE,
diff --git a/drivers/net/phy/mdio-mux-gpio.c b/drivers/net/phy/mdio-mux-gpio.c
index eefe49e8713c..0c9accb1c14f 100644
--- a/drivers/net/phy/mdio-mux-gpio.c
+++ b/drivers/net/phy/mdio-mux-gpio.c
@@ -49,7 +49,7 @@ static int mdio_mux_gpio_switch_fn(int current_child, int desired_child,
49 return 0; 49 return 0;
50} 50}
51 51
52static int __devinit mdio_mux_gpio_probe(struct platform_device *pdev) 52static int mdio_mux_gpio_probe(struct platform_device *pdev)
53{ 53{
54 enum of_gpio_flags f; 54 enum of_gpio_flags f;
55 struct mdio_mux_gpio_state *s; 55 struct mdio_mux_gpio_state *s;
@@ -104,7 +104,7 @@ err:
104 return r; 104 return r;
105} 105}
106 106
107static int __devexit mdio_mux_gpio_remove(struct platform_device *pdev) 107static int mdio_mux_gpio_remove(struct platform_device *pdev)
108{ 108{
109 struct mdio_mux_gpio_state *s = pdev->dev.platform_data; 109 struct mdio_mux_gpio_state *s = pdev->dev.platform_data;
110 mdio_mux_uninit(s->mux_handle); 110 mdio_mux_uninit(s->mux_handle);
@@ -130,7 +130,7 @@ static struct platform_driver mdio_mux_gpio_driver = {
130 .of_match_table = mdio_mux_gpio_match, 130 .of_match_table = mdio_mux_gpio_match,
131 }, 131 },
132 .probe = mdio_mux_gpio_probe, 132 .probe = mdio_mux_gpio_probe,
133 .remove = __devexit_p(mdio_mux_gpio_remove), 133 .remove = mdio_mux_gpio_remove,
134}; 134};
135 135
136module_platform_driver(mdio_mux_gpio_driver); 136module_platform_driver(mdio_mux_gpio_driver);
diff --git a/drivers/net/phy/mdio-mux-mmioreg.c b/drivers/net/phy/mdio-mux-mmioreg.c
index 9061ba622ac4..9733bd239a86 100644
--- a/drivers/net/phy/mdio-mux-mmioreg.c
+++ b/drivers/net/phy/mdio-mux-mmioreg.c
@@ -67,7 +67,7 @@ static int mdio_mux_mmioreg_switch_fn(int current_child, int desired_child,
67 return 0; 67 return 0;
68} 68}
69 69
70static int __devinit mdio_mux_mmioreg_probe(struct platform_device *pdev) 70static int mdio_mux_mmioreg_probe(struct platform_device *pdev)
71{ 71{
72 struct device_node *np2, *np = pdev->dev.of_node; 72 struct device_node *np2, *np = pdev->dev.of_node;
73 struct mdio_mux_mmioreg_state *s; 73 struct mdio_mux_mmioreg_state *s;
@@ -137,7 +137,7 @@ static int __devinit mdio_mux_mmioreg_probe(struct platform_device *pdev)
137 return 0; 137 return 0;
138} 138}
139 139
140static int __devexit mdio_mux_mmioreg_remove(struct platform_device *pdev) 140static int mdio_mux_mmioreg_remove(struct platform_device *pdev)
141{ 141{
142 struct mdio_mux_mmioreg_state *s = dev_get_platdata(&pdev->dev); 142 struct mdio_mux_mmioreg_state *s = dev_get_platdata(&pdev->dev);
143 143
@@ -161,7 +161,7 @@ static struct platform_driver mdio_mux_mmioreg_driver = {
161 .of_match_table = mdio_mux_mmioreg_match, 161 .of_match_table = mdio_mux_mmioreg_match,
162 }, 162 },
163 .probe = mdio_mux_mmioreg_probe, 163 .probe = mdio_mux_mmioreg_probe,
164 .remove = __devexit_p(mdio_mux_mmioreg_remove), 164 .remove = mdio_mux_mmioreg_remove,
165}; 165};
166 166
167module_platform_driver(mdio_mux_mmioreg_driver); 167module_platform_driver(mdio_mux_mmioreg_driver);
diff --git a/drivers/net/phy/mdio-octeon.c b/drivers/net/phy/mdio-octeon.c
index d4015aa663e6..09297fe05ae5 100644
--- a/drivers/net/phy/mdio-octeon.c
+++ b/drivers/net/phy/mdio-octeon.c
@@ -96,7 +96,7 @@ static int octeon_mdiobus_write(struct mii_bus *bus, int phy_id,
96 return 0; 96 return 0;
97} 97}
98 98
99static int __devinit octeon_mdiobus_probe(struct platform_device *pdev) 99static int octeon_mdiobus_probe(struct platform_device *pdev)
100{ 100{
101 struct octeon_mdiobus *bus; 101 struct octeon_mdiobus *bus;
102 struct resource *res_mem; 102 struct resource *res_mem;
@@ -159,7 +159,7 @@ fail:
159 return err; 159 return err;
160} 160}
161 161
162static int __devexit octeon_mdiobus_remove(struct platform_device *pdev) 162static int octeon_mdiobus_remove(struct platform_device *pdev)
163{ 163{
164 struct octeon_mdiobus *bus; 164 struct octeon_mdiobus *bus;
165 union cvmx_smix_en smi_en; 165 union cvmx_smix_en smi_en;
@@ -188,7 +188,7 @@ static struct platform_driver octeon_mdiobus_driver = {
188 .of_match_table = octeon_mdiobus_match, 188 .of_match_table = octeon_mdiobus_match,
189 }, 189 },
190 .probe = octeon_mdiobus_probe, 190 .probe = octeon_mdiobus_probe,
191 .remove = __devexit_p(octeon_mdiobus_remove), 191 .remove = octeon_mdiobus_remove,
192}; 192};
193 193
194void octeon_mdiobus_force_mod_depencency(void) 194void octeon_mdiobus_force_mod_depencency(void)
diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c
index 1c3abce78b6a..41eb8ffeb53d 100644
--- a/drivers/net/phy/spi_ks8995.c
+++ b/drivers/net/phy/spi_ks8995.c
@@ -264,7 +264,7 @@ static struct bin_attribute ks8995_registers_attr = {
264 264
265/* ------------------------------------------------------------------------ */ 265/* ------------------------------------------------------------------------ */
266 266
267static int __devinit ks8995_probe(struct spi_device *spi) 267static int ks8995_probe(struct spi_device *spi)
268{ 268{
269 struct ks8995_switch *ks; 269 struct ks8995_switch *ks;
270 struct ks8995_pdata *pdata; 270 struct ks8995_pdata *pdata;
@@ -332,7 +332,7 @@ err_drvdata:
332 return err; 332 return err;
333} 333}
334 334
335static int __devexit ks8995_remove(struct spi_device *spi) 335static int ks8995_remove(struct spi_device *spi)
336{ 336{
337 struct ks8995_data *ks8995; 337 struct ks8995_data *ks8995;
338 338
@@ -353,7 +353,7 @@ static struct spi_driver ks8995_driver = {
353 .owner = THIS_MODULE, 353 .owner = THIS_MODULE,
354 }, 354 },
355 .probe = ks8995_probe, 355 .probe = ks8995_probe,
356 .remove = __devexit_p(ks8995_remove), 356 .remove = ks8995_remove,
357}; 357};
358 358
359static int __init ks8995_init(void) 359static int __init ks8995_init(void)