aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/bbc_i2c.c
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/char/bbc_i2c.c
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/char/bbc_i2c.c')
-rw-r--r--drivers/sbus/char/bbc_i2c.c6
1 files changed, 3 insertions, 3 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);