Skip to content

Commit 33b07db

Browse files
committed
Revert "of_platform_driver noise on sparce"
This reverts commit e669dae, since it is incomplete, and clashes with fuller patches and the sparc 32/64 unification effort. Requested-by: David Miller <davem@davemloft.net> Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d9d060a commit 33b07db

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎arch/sparc64/kernel/pci_fire.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ static int __init pci_fire_pbm_init(struct pci_pbm_info *pbm,
455455
return 0;
456456
}
457457

458-
static int __init fire_probe(struct of_device *op,
458+
static int __devinit fire_probe(struct of_device *op,
459459
const struct of_device_id *match)
460460
{
461461
struct device_node *dp = op->node;

‎arch/sparc64/kernel/pci_psycho.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ static void __init psycho_pbm_init(struct pci_pbm_info *pbm,
493493
psycho_scan_bus(pbm, &op->dev);
494494
}
495495

496-
static struct pci_pbm_info * __init psycho_find_sibling(u32 upa_portid)
496+
static struct pci_pbm_info * __devinit psycho_find_sibling(u32 upa_portid)
497497
{
498498
struct pci_pbm_info *pbm;
499499

@@ -506,7 +506,7 @@ static struct pci_pbm_info * __init psycho_find_sibling(u32 upa_portid)
506506

507507
#define PSYCHO_CONFIGSPACE 0x001000000UL
508508

509-
static int __init psycho_probe(struct of_device *op,
509+
static int __devinit psycho_probe(struct of_device *op,
510510
const struct of_device_id *match)
511511
{
512512
const struct linux_prom64_registers *pr_regs;

‎arch/sparc64/kernel/pci_sun4v.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ static int __init pci_sun4v_pbm_init(struct pci_pbm_info *pbm,
929929
return 0;
930930
}
931931

932-
static int __init pci_sun4v_probe(struct of_device *op,
932+
static int __devinit pci_sun4v_probe(struct of_device *op,
933933
const struct of_device_id *match)
934934
{
935935
const struct linux_prom64_registers *regs;

‎drivers/sbus/char/bbc_i2c.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ static struct bbc_i2c_bus * __init attach_one_i2c(struct of_device *op, int inde
361361
extern int bbc_envctrl_init(struct bbc_i2c_bus *bp);
362362
extern void bbc_envctrl_cleanup(struct bbc_i2c_bus *bp);
363363

364-
static int __init bbc_i2c_probe(struct of_device *op,
364+
static int __devinit bbc_i2c_probe(struct of_device *op,
365365
const struct of_device_id *match)
366366
{
367367
struct bbc_i2c_bus *bp;
@@ -386,7 +386,7 @@ static int __init bbc_i2c_probe(struct of_device *op,
386386
return err;
387387
}
388388

389-
static int __exit bbc_i2c_remove(struct of_device *op)
389+
static int __devexit bbc_i2c_remove(struct of_device *op)
390390
{
391391
struct bbc_i2c_bus *bp = dev_get_drvdata(&op->dev);
392392

@@ -417,7 +417,7 @@ static struct of_platform_driver bbc_i2c_driver = {
417417
.name = "bbc_i2c",
418418
.match_table = bbc_i2c_match,
419419
.probe = bbc_i2c_probe,
420-
.remove = __exit_p(bbc_i2c_remove),
420+
.remove = __devexit_p(bbc_i2c_remove),
421421
};
422422

423423
static int __init bbc_i2c_init(void)

‎sound/sparc/cs4231.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,7 @@ static int __init snd_cs4231_sbus_create(struct snd_card *card,
18561856
return 0;
18571857
}
18581858

1859-
static int __init cs4231_sbus_probe(struct of_device *op, const struct of_device_id *match)
1859+
static int __devinit cs4231_sbus_probe(struct of_device *op, const struct of_device_id *match)
18601860
{
18611861
struct resource *rp = &op->resource[0];
18621862
struct snd_card *card;
@@ -2048,7 +2048,7 @@ static int __init snd_cs4231_ebus_create(struct snd_card *card,
20482048
return 0;
20492049
}
20502050

2051-
static int __init cs4231_ebus_probe(struct of_device *op, const struct of_device_id *match)
2051+
static int __devinit cs4231_ebus_probe(struct of_device *op, const struct of_device_id *match)
20522052
{
20532053
struct snd_card *card;
20542054
int err;
@@ -2072,7 +2072,7 @@ static int __init cs4231_ebus_probe(struct of_device *op, const struct of_device
20722072
}
20732073
#endif
20742074

2075-
static int __init cs4231_probe(struct of_device *op, const struct of_device_id *match)
2075+
static int __devinit cs4231_probe(struct of_device *op, const struct of_device_id *match)
20762076
{
20772077
#ifdef EBUS_SUPPORT
20782078
if (!strcmp(op->node->parent->name, "ebus"))
@@ -2086,7 +2086,7 @@ static int __init cs4231_probe(struct of_device *op, const struct of_device_id *
20862086
return -ENODEV;
20872087
}
20882088

2089-
static int __exit cs4231_remove(struct of_device *op)
2089+
static int __devexit cs4231_remove(struct of_device *op)
20902090
{
20912091
struct snd_cs4231 *chip = dev_get_drvdata(&op->dev);
20922092

@@ -2112,7 +2112,7 @@ static struct of_platform_driver cs4231_driver = {
21122112
.name = "audio",
21132113
.match_table = cs4231_match,
21142114
.probe = cs4231_probe,
2115-
.remove = __exit_p(cs4231_remove),
2115+
.remove = __devexit_p(cs4231_remove),
21162116
};
21172117

21182118
static int __init cs4231_init(void)

0 commit comments

Comments
 (0)