aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-08-31 04:23:17 -0400
committerDavid S. Miller <davem@davemloft.net>2008-08-31 04:23:17 -0400
commitfd098316ef533e8441576f020ead4beab93154ce (patch)
tree6188bbbf2357585dbeeac9d055ef2e771b78bac8 /arch/sparc64
parent933b2a1d8d458d6fe12b5efd63a0432852c44d6d (diff)
sparc: Annotate of_device_id arrays with const or __initdata.
As suggested by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/kernel/auxio.c2
-rw-r--r--arch/sparc64/kernel/chmc.c2
-rw-r--r--arch/sparc64/kernel/pci_fire.c2
-rw-r--r--arch/sparc64/kernel/pci_psycho.c2
-rw-r--r--arch/sparc64/kernel/pci_sabre.c2
-rw-r--r--arch/sparc64/kernel/pci_schizo.c2
-rw-r--r--arch/sparc64/kernel/pci_sun4v.c2
-rw-r--r--arch/sparc64/kernel/power.c2
-rw-r--r--arch/sparc64/kernel/time.c6
9 files changed, 11 insertions, 11 deletions
diff --git a/arch/sparc64/kernel/auxio.c b/arch/sparc64/kernel/auxio.c
index dd5c7bf87619..858beda86524 100644
--- a/arch/sparc64/kernel/auxio.c
+++ b/arch/sparc64/kernel/auxio.c
@@ -109,7 +109,7 @@ void auxio_set_lte(int on)
109 } 109 }
110} 110}
111 111
112static struct of_device_id auxio_match[] = { 112static struct of_device_id __initdata auxio_match[] = {
113 { 113 {
114 .name = "auxio", 114 .name = "auxio",
115 }, 115 },
diff --git a/arch/sparc64/kernel/chmc.c b/arch/sparc64/kernel/chmc.c
index 3e14952e9407..2ed401087cab 100644
--- a/arch/sparc64/kernel/chmc.c
+++ b/arch/sparc64/kernel/chmc.c
@@ -801,7 +801,7 @@ static int __devexit us3mc_remove(struct of_device *op)
801 return 0; 801 return 0;
802} 802}
803 803
804static struct of_device_id us3mc_match[] = { 804static const struct of_device_id us3mc_match[] = {
805 { 805 {
806 .name = "memory-controller", 806 .name = "memory-controller",
807 }, 807 },
diff --git a/arch/sparc64/kernel/pci_fire.c b/arch/sparc64/kernel/pci_fire.c
index adc3fe44b081..477928aad538 100644
--- a/arch/sparc64/kernel/pci_fire.c
+++ b/arch/sparc64/kernel/pci_fire.c
@@ -547,7 +547,7 @@ out_free:
547 return err; 547 return err;
548} 548}
549 549
550static struct of_device_id fire_match[] = { 550static struct of_device_id __initdata fire_match[] = {
551 { 551 {
552 .name = "pci", 552 .name = "pci",
553 .compatible = "pciex108e,80f0", 553 .compatible = "pciex108e,80f0",
diff --git a/arch/sparc64/kernel/pci_psycho.c b/arch/sparc64/kernel/pci_psycho.c
index 4e8f87aad205..708212a6e7eb 100644
--- a/arch/sparc64/kernel/pci_psycho.c
+++ b/arch/sparc64/kernel/pci_psycho.c
@@ -1099,7 +1099,7 @@ out_free:
1099 return err; 1099 return err;
1100} 1100}
1101 1101
1102static struct of_device_id psycho_match[] = { 1102static struct of_device_id __initdata psycho_match[] = {
1103 { 1103 {
1104 .name = "pci", 1104 .name = "pci",
1105 .compatible = "pci108e,8000", 1105 .compatible = "pci108e,8000",
diff --git a/arch/sparc64/kernel/pci_sabre.c b/arch/sparc64/kernel/pci_sabre.c
index 7cce4d8f4aae..cc476e9a275e 100644
--- a/arch/sparc64/kernel/pci_sabre.c
+++ b/arch/sparc64/kernel/pci_sabre.c
@@ -885,7 +885,7 @@ out_free:
885 return err; 885 return err;
886} 886}
887 887
888static struct of_device_id sabre_match[] = { 888static struct of_device_id __initdata sabre_match[] = {
889 { 889 {
890 .name = "pci", 890 .name = "pci",
891 .compatible = "pci108e,a001", 891 .compatible = "pci108e,a001",
diff --git a/arch/sparc64/kernel/pci_schizo.c b/arch/sparc64/kernel/pci_schizo.c
index b95dd548583a..18fdd887b4ac 100644
--- a/arch/sparc64/kernel/pci_schizo.c
+++ b/arch/sparc64/kernel/pci_schizo.c
@@ -1504,7 +1504,7 @@ static int __devinit schizo_probe(struct of_device *op,
1504 * and pci108e,8001. So list the chips in reverse chronological 1504 * and pci108e,8001. So list the chips in reverse chronological
1505 * order. 1505 * order.
1506 */ 1506 */
1507static struct of_device_id schizo_match[] = { 1507static struct of_device_id __initdata schizo_match[] = {
1508 { 1508 {
1509 .name = "pci", 1509 .name = "pci",
1510 .compatible = "pci108e,a801", 1510 .compatible = "pci108e,a801",
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c
index c1e72beade2b..fea51a054be5 100644
--- a/arch/sparc64/kernel/pci_sun4v.c
+++ b/arch/sparc64/kernel/pci_sun4v.c
@@ -1026,7 +1026,7 @@ out_free:
1026 return -ENOMEM; 1026 return -ENOMEM;
1027} 1027}
1028 1028
1029static struct of_device_id pci_sun4v_match[] = { 1029static struct of_device_id __initdata pci_sun4v_match[] = {
1030 { 1030 {
1031 .name = "pci", 1031 .name = "pci",
1032 .compatible = "SUNW,sun4v-pci", 1032 .compatible = "SUNW,sun4v-pci",
diff --git a/arch/sparc64/kernel/power.c b/arch/sparc64/kernel/power.c
index 7536255ab573..7559ad395a33 100644
--- a/arch/sparc64/kernel/power.c
+++ b/arch/sparc64/kernel/power.c
@@ -89,7 +89,7 @@ static int __devinit power_probe(struct of_device *op, const struct of_device_id
89 return 0; 89 return 0;
90} 90}
91 91
92static struct of_device_id power_match[] = { 92static struct of_device_id __initdata power_match[] = {
93 { 93 {
94 .name = "power", 94 .name = "power",
95 }, 95 },
diff --git a/arch/sparc64/kernel/time.c b/arch/sparc64/kernel/time.c
index ea05038a8c16..209e7d28c3a5 100644
--- a/arch/sparc64/kernel/time.c
+++ b/arch/sparc64/kernel/time.c
@@ -438,7 +438,7 @@ static int __devinit rtc_probe(struct of_device *op, const struct of_device_id *
438 return platform_device_register(&rtc_cmos_device); 438 return platform_device_register(&rtc_cmos_device);
439} 439}
440 440
441static struct of_device_id rtc_match[] = { 441static struct of_device_id __initdata rtc_match[] = {
442 { 442 {
443 .name = "rtc", 443 .name = "rtc",
444 .compatible = "m5819", 444 .compatible = "m5819",
@@ -482,7 +482,7 @@ static int __devinit bq4802_probe(struct of_device *op, const struct of_device_i
482 return platform_device_register(&rtc_bq4802_device); 482 return platform_device_register(&rtc_bq4802_device);
483} 483}
484 484
485static struct of_device_id bq4802_match[] = { 485static struct of_device_id __initdata bq4802_match[] = {
486 { 486 {
487 .name = "rtc", 487 .name = "rtc",
488 .compatible = "bq4802", 488 .compatible = "bq4802",
@@ -566,7 +566,7 @@ static int __devinit mostek_probe(struct of_device *op, const struct of_device_i
566 return platform_device_register(&m48t59_rtc); 566 return platform_device_register(&m48t59_rtc);
567} 567}
568 568
569static struct of_device_id mostek_match[] = { 569static struct of_device_id __initdata mostek_match[] = {
570 { 570 {
571 .name = "eeprom", 571 .name = "eeprom",
572 }, 572 },