aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sbus
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:24:23 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:03 -0500
commit082a2004db27e16ee9a5b1234e6ab219ea29d693 (patch)
treeab024a2f3bb69e426ef0ef460980083cd938fbe2 /drivers/sbus
parent9b3c6e85c2cfa731cf67d5a8c49f7d8c60ec0b04 (diff)
Drivers: sbus: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: "David S. Miller" <davem@davemloft.net> Cc: Peter Senna Tschudin <peter.senna@gmail.com> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/sbus')
-rw-r--r--drivers/sbus/char/bbc_i2c.c6
-rw-r--r--drivers/sbus/char/display7seg.c6
-rw-r--r--drivers/sbus/char/envctrl.c6
-rw-r--r--drivers/sbus/char/flash.c6
-rw-r--r--drivers/sbus/char/uctrl.c6
5 files changed, 15 insertions, 15 deletions
diff --git a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c
index 542668292900..1a9d1e3ce64c 100644
--- a/drivers/sbus/char/bbc_i2c.c
+++ b/drivers/sbus/char/bbc_i2c.c
@@ -355,7 +355,7 @@ fail:
355extern int bbc_envctrl_init(struct bbc_i2c_bus *bp); 355extern int bbc_envctrl_init(struct bbc_i2c_bus *bp);
356extern void bbc_envctrl_cleanup(struct bbc_i2c_bus *bp); 356extern void bbc_envctrl_cleanup(struct bbc_i2c_bus *bp);
357 357
358static int __devinit bbc_i2c_probe(struct platform_device *op) 358static int bbc_i2c_probe(struct platform_device *op)
359{ 359{
360 struct bbc_i2c_bus *bp; 360 struct bbc_i2c_bus *bp;
361 int err, index = 0; 361 int err, index = 0;
@@ -379,7 +379,7 @@ static int __devinit bbc_i2c_probe(struct platform_device *op)
379 return err; 379 return err;
380} 380}
381 381
382static int __devexit bbc_i2c_remove(struct platform_device *op) 382static int bbc_i2c_remove(struct platform_device *op)
383{ 383{
384 struct bbc_i2c_bus *bp = dev_get_drvdata(&op->dev); 384 struct bbc_i2c_bus *bp = dev_get_drvdata(&op->dev);
385 385
@@ -413,7 +413,7 @@ static struct platform_driver bbc_i2c_driver = {
413 .of_match_table = bbc_i2c_match, 413 .of_match_table = bbc_i2c_match,
414 }, 414 },
415 .probe = bbc_i2c_probe, 415 .probe = bbc_i2c_probe,
416 .remove = __devexit_p(bbc_i2c_remove), 416 .remove = bbc_i2c_remove,
417}; 417};
418 418
419module_platform_driver(bbc_i2c_driver); 419module_platform_driver(bbc_i2c_driver);
diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c
index b160073e54b6..e85c803b30cd 100644
--- a/drivers/sbus/char/display7seg.c
+++ b/drivers/sbus/char/display7seg.c
@@ -171,7 +171,7 @@ static struct miscdevice d7s_miscdev = {
171 .fops = &d7s_fops 171 .fops = &d7s_fops
172}; 172};
173 173
174static int __devinit d7s_probe(struct platform_device *op) 174static int d7s_probe(struct platform_device *op)
175{ 175{
176 struct device_node *opts; 176 struct device_node *opts;
177 int err = -EINVAL; 177 int err = -EINVAL;
@@ -236,7 +236,7 @@ out_free:
236 goto out; 236 goto out;
237} 237}
238 238
239static int __devexit d7s_remove(struct platform_device *op) 239static int d7s_remove(struct platform_device *op)
240{ 240{
241 struct d7s *p = dev_get_drvdata(&op->dev); 241 struct d7s *p = dev_get_drvdata(&op->dev);
242 u8 regs = readb(p->regs); 242 u8 regs = readb(p->regs);
@@ -272,7 +272,7 @@ static struct platform_driver d7s_driver = {
272 .of_match_table = d7s_match, 272 .of_match_table = d7s_match,
273 }, 273 },
274 .probe = d7s_probe, 274 .probe = d7s_probe,
275 .remove = __devexit_p(d7s_remove), 275 .remove = d7s_remove,
276}; 276};
277 277
278module_platform_driver(d7s_driver); 278module_platform_driver(d7s_driver);
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c
index 0bc18569f9c0..ddbe5a9e713d 100644
--- a/drivers/sbus/char/envctrl.c
+++ b/drivers/sbus/char/envctrl.c
@@ -1028,7 +1028,7 @@ static int kenvctrld(void *__unused)
1028 return 0; 1028 return 0;
1029} 1029}
1030 1030
1031static int __devinit envctrl_probe(struct platform_device *op) 1031static int envctrl_probe(struct platform_device *op)
1032{ 1032{
1033 struct device_node *dp; 1033 struct device_node *dp;
1034 int index, err; 1034 int index, err;
@@ -1104,7 +1104,7 @@ out_iounmap:
1104 return err; 1104 return err;
1105} 1105}
1106 1106
1107static int __devexit envctrl_remove(struct platform_device *op) 1107static int envctrl_remove(struct platform_device *op)
1108{ 1108{
1109 int index; 1109 int index;
1110 1110
@@ -1135,7 +1135,7 @@ static struct platform_driver envctrl_driver = {
1135 .of_match_table = envctrl_match, 1135 .of_match_table = envctrl_match,
1136 }, 1136 },
1137 .probe = envctrl_probe, 1137 .probe = envctrl_probe,
1138 .remove = __devexit_p(envctrl_remove), 1138 .remove = envctrl_remove,
1139}; 1139};
1140 1140
1141module_platform_driver(envctrl_driver); 1141module_platform_driver(envctrl_driver);
diff --git a/drivers/sbus/char/flash.c b/drivers/sbus/char/flash.c
index 327657e2e264..d9f268f23774 100644
--- a/drivers/sbus/char/flash.c
+++ b/drivers/sbus/char/flash.c
@@ -159,7 +159,7 @@ static const struct file_operations flash_fops = {
159 159
160static struct miscdevice flash_dev = { FLASH_MINOR, "flash", &flash_fops }; 160static struct miscdevice flash_dev = { FLASH_MINOR, "flash", &flash_fops };
161 161
162static int __devinit flash_probe(struct platform_device *op) 162static int flash_probe(struct platform_device *op)
163{ 163{
164 struct device_node *dp = op->dev.of_node; 164 struct device_node *dp = op->dev.of_node;
165 struct device_node *parent; 165 struct device_node *parent;
@@ -190,7 +190,7 @@ static int __devinit flash_probe(struct platform_device *op)
190 return misc_register(&flash_dev); 190 return misc_register(&flash_dev);
191} 191}
192 192
193static int __devexit flash_remove(struct platform_device *op) 193static int flash_remove(struct platform_device *op)
194{ 194{
195 misc_deregister(&flash_dev); 195 misc_deregister(&flash_dev);
196 196
@@ -212,7 +212,7 @@ static struct platform_driver flash_driver = {
212 .of_match_table = flash_match, 212 .of_match_table = flash_match,
213 }, 213 },
214 .probe = flash_probe, 214 .probe = flash_probe,
215 .remove = __devexit_p(flash_remove), 215 .remove = flash_remove,
216}; 216};
217 217
218module_platform_driver(flash_driver); 218module_platform_driver(flash_driver);
diff --git a/drivers/sbus/char/uctrl.c b/drivers/sbus/char/uctrl.c
index a9e468cc1cac..b0aae0536d58 100644
--- a/drivers/sbus/char/uctrl.c
+++ b/drivers/sbus/char/uctrl.c
@@ -347,7 +347,7 @@ static void uctrl_get_external_status(struct uctrl_driver *driver)
347 347
348} 348}
349 349
350static int __devinit uctrl_probe(struct platform_device *op) 350static int uctrl_probe(struct platform_device *op)
351{ 351{
352 struct uctrl_driver *p; 352 struct uctrl_driver *p;
353 int err = -ENOMEM; 353 int err = -ENOMEM;
@@ -402,7 +402,7 @@ out_free:
402 goto out; 402 goto out;
403} 403}
404 404
405static int __devexit uctrl_remove(struct platform_device *op) 405static int uctrl_remove(struct platform_device *op)
406{ 406{
407 struct uctrl_driver *p = dev_get_drvdata(&op->dev); 407 struct uctrl_driver *p = dev_get_drvdata(&op->dev);
408 408
@@ -430,7 +430,7 @@ static struct platform_driver uctrl_driver = {
430 .of_match_table = uctrl_match, 430 .of_match_table = uctrl_match,
431 }, 431 },
432 .probe = uctrl_probe, 432 .probe = uctrl_probe,
433 .remove = __devexit_p(uctrl_remove), 433 .remove = uctrl_remove,
434}; 434};
435 435
436 436