Skip to content

Commit fd09831

Browse files
committed
sparc: Annotate of_device_id arrays with const or __initdata.
As suggested by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 933b2a1 commit fd09831

50 files changed

Lines changed: 53 additions & 53 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/sparc/include/asm/parport.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static int __devexit ecpp_remove(struct of_device *op)
215215
return 0;
216216
}
217217

218-
static struct of_device_id ecpp_match[] = {
218+
static const struct of_device_id ecpp_match[] = {
219219
{
220220
.name = "ecpp",
221221
},

‎arch/sparc/kernel/apc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static int __devinit apc_probe(struct of_device *op,
182182
return 0;
183183
}
184184

185-
static struct of_device_id apc_match[] = {
185+
static struct of_device_id __initdata apc_match[] = {
186186
{
187187
.name = APC_OBPNAME,
188188
},

‎arch/sparc/kernel/pmc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static int __devinit pmc_probe(struct of_device *op,
7272
return 0;
7373
}
7474

75-
static struct of_device_id pmc_match[] = {
75+
static struct of_device_id __initdata pmc_match[] = {
7676
{
7777
.name = PMC_OBPNAME,
7878
},

‎arch/sparc/kernel/time.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static int __devinit clock_probe(struct of_device *op, const struct of_device_id
338338
return 0;
339339
}
340340

341-
static struct of_device_id clock_match[] = {
341+
static struct of_device_id __initdata clock_match[] = {
342342
{
343343
.name = "eeprom",
344344
},

‎arch/sparc64/kernel/auxio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void auxio_set_lte(int on)
109109
}
110110
}
111111

112-
static struct of_device_id auxio_match[] = {
112+
static struct of_device_id __initdata auxio_match[] = {
113113
{
114114
.name = "auxio",
115115
},

‎arch/sparc64/kernel/chmc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ static int __devexit us3mc_remove(struct of_device *op)
801801
return 0;
802802
}
803803

804-
static struct of_device_id us3mc_match[] = {
804+
static const struct of_device_id us3mc_match[] = {
805805
{
806806
.name = "memory-controller",
807807
},

‎arch/sparc64/kernel/pci_fire.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ static int __devinit fire_probe(struct of_device *op,
547547
return err;
548548
}
549549

550-
static struct of_device_id fire_match[] = {
550+
static struct of_device_id __initdata fire_match[] = {
551551
{
552552
.name = "pci",
553553
.compatible = "pciex108e,80f0",

‎arch/sparc64/kernel/pci_psycho.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ static int __devinit psycho_probe(struct of_device *op,
10991099
return err;
11001100
}
11011101

1102-
static struct of_device_id psycho_match[] = {
1102+
static struct of_device_id __initdata psycho_match[] = {
11031103
{
11041104
.name = "pci",
11051105
.compatible = "pci108e,8000",

‎arch/sparc64/kernel/pci_sabre.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ static int __devinit sabre_probe(struct of_device *op,
885885
return err;
886886
}
887887

888-
static struct of_device_id sabre_match[] = {
888+
static struct of_device_id __initdata sabre_match[] = {
889889
{
890890
.name = "pci",
891891
.compatible = "pci108e,a001",

‎arch/sparc64/kernel/pci_schizo.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ static int __devinit schizo_probe(struct of_device *op,
15041504
* and pci108e,8001. So list the chips in reverse chronological
15051505
* order.
15061506
*/
1507-
static struct of_device_id schizo_match[] = {
1507+
static struct of_device_id __initdata schizo_match[] = {
15081508
{
15091509
.name = "pci",
15101510
.compatible = "pci108e,a801",

0 commit comments

Comments
 (0)