Skip to content

Commit 082a200

Browse files
committed
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>
1 parent 9b3c6e8 commit 082a200

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎drivers/sbus/char/bbc_i2c.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static struct bbc_i2c_bus * __init attach_one_i2c(struct platform_device *op, in
355355
extern int bbc_envctrl_init(struct bbc_i2c_bus *bp);
356356
extern void bbc_envctrl_cleanup(struct bbc_i2c_bus *bp);
357357

358-
static int __devinit bbc_i2c_probe(struct platform_device *op)
358+
static int bbc_i2c_probe(struct platform_device *op)
359359
{
360360
struct bbc_i2c_bus *bp;
361361
int err, index = 0;
@@ -379,7 +379,7 @@ static int __devinit bbc_i2c_probe(struct platform_device *op)
379379
return err;
380380
}
381381

382-
static int __devexit bbc_i2c_remove(struct platform_device *op)
382+
static int bbc_i2c_remove(struct platform_device *op)
383383
{
384384
struct bbc_i2c_bus *bp = dev_get_drvdata(&op->dev);
385385

@@ -413,7 +413,7 @@ static struct platform_driver bbc_i2c_driver = {
413413
.of_match_table = bbc_i2c_match,
414414
},
415415
.probe = bbc_i2c_probe,
416-
.remove = __devexit_p(bbc_i2c_remove),
416+
.remove = bbc_i2c_remove,
417417
};
418418

419419
module_platform_driver(bbc_i2c_driver);

‎drivers/sbus/char/display7seg.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static struct miscdevice d7s_miscdev = {
171171
.fops = &d7s_fops
172172
};
173173

174-
static int __devinit d7s_probe(struct platform_device *op)
174+
static int d7s_probe(struct platform_device *op)
175175
{
176176
struct device_node *opts;
177177
int err = -EINVAL;
@@ -236,7 +236,7 @@ static int __devinit d7s_probe(struct platform_device *op)
236236
goto out;
237237
}
238238

239-
static int __devexit d7s_remove(struct platform_device *op)
239+
static int d7s_remove(struct platform_device *op)
240240
{
241241
struct d7s *p = dev_get_drvdata(&op->dev);
242242
u8 regs = readb(p->regs);
@@ -272,7 +272,7 @@ static struct platform_driver d7s_driver = {
272272
.of_match_table = d7s_match,
273273
},
274274
.probe = d7s_probe,
275-
.remove = __devexit_p(d7s_remove),
275+
.remove = d7s_remove,
276276
};
277277

278278
module_platform_driver(d7s_driver);

‎drivers/sbus/char/envctrl.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ static int kenvctrld(void *__unused)
10281028
return 0;
10291029
}
10301030

1031-
static int __devinit envctrl_probe(struct platform_device *op)
1031+
static int envctrl_probe(struct platform_device *op)
10321032
{
10331033
struct device_node *dp;
10341034
int index, err;
@@ -1104,7 +1104,7 @@ static int __devinit envctrl_probe(struct platform_device *op)
11041104
return err;
11051105
}
11061106

1107-
static int __devexit envctrl_remove(struct platform_device *op)
1107+
static int envctrl_remove(struct platform_device *op)
11081108
{
11091109
int index;
11101110

@@ -1135,7 +1135,7 @@ static struct platform_driver envctrl_driver = {
11351135
.of_match_table = envctrl_match,
11361136
},
11371137
.probe = envctrl_probe,
1138-
.remove = __devexit_p(envctrl_remove),
1138+
.remove = envctrl_remove,
11391139
};
11401140

11411141
module_platform_driver(envctrl_driver);

‎drivers/sbus/char/flash.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static const struct file_operations flash_fops = {
159159

160160
static struct miscdevice flash_dev = { FLASH_MINOR, "flash", &flash_fops };
161161

162-
static int __devinit flash_probe(struct platform_device *op)
162+
static int flash_probe(struct platform_device *op)
163163
{
164164
struct device_node *dp = op->dev.of_node;
165165
struct device_node *parent;
@@ -190,7 +190,7 @@ static int __devinit flash_probe(struct platform_device *op)
190190
return misc_register(&flash_dev);
191191
}
192192

193-
static int __devexit flash_remove(struct platform_device *op)
193+
static int flash_remove(struct platform_device *op)
194194
{
195195
misc_deregister(&flash_dev);
196196

@@ -212,7 +212,7 @@ static struct platform_driver flash_driver = {
212212
.of_match_table = flash_match,
213213
},
214214
.probe = flash_probe,
215-
.remove = __devexit_p(flash_remove),
215+
.remove = flash_remove,
216216
};
217217

218218
module_platform_driver(flash_driver);

‎drivers/sbus/char/uctrl.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static void uctrl_get_external_status(struct uctrl_driver *driver)
347347

348348
}
349349

350-
static int __devinit uctrl_probe(struct platform_device *op)
350+
static int uctrl_probe(struct platform_device *op)
351351
{
352352
struct uctrl_driver *p;
353353
int err = -ENOMEM;
@@ -402,7 +402,7 @@ static int __devinit uctrl_probe(struct platform_device *op)
402402
goto out;
403403
}
404404

405-
static int __devexit uctrl_remove(struct platform_device *op)
405+
static int uctrl_remove(struct platform_device *op)
406406
{
407407
struct uctrl_driver *p = dev_get_drvdata(&op->dev);
408408

@@ -430,7 +430,7 @@ static struct platform_driver uctrl_driver = {
430430
.of_match_table = uctrl_match,
431431
},
432432
.probe = uctrl_probe,
433-
.remove = __devexit_p(uctrl_remove),
433+
.remove = uctrl_remove,
434434
};
435435

436436

0 commit comments

Comments
 (0)