Commit fd098316 authored by David S. Miller's avatar David S. Miller
Browse files

sparc: Annotate of_device_id arrays with const or __initdata.



As suggested by Stephen Rothwell.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 933b2a1d
......@@ -215,7 +215,7 @@ static int __devexit ecpp_remove(struct of_device *op)
return 0;
}
static struct of_device_id ecpp_match[] = {
static const struct of_device_id ecpp_match[] = {
{
.name = "ecpp",
},
......
......@@ -182,7 +182,7 @@ static int __devinit apc_probe(struct of_device *op,
return 0;
}
static struct of_device_id apc_match[] = {
static struct of_device_id __initdata apc_match[] = {
{
.name = APC_OBPNAME,
},
......
......@@ -72,7 +72,7 @@ static int __devinit pmc_probe(struct of_device *op,
return 0;
}
static struct of_device_id pmc_match[] = {
static struct of_device_id __initdata pmc_match[] = {
{
.name = PMC_OBPNAME,
},
......
......@@ -338,7 +338,7 @@ static int __devinit clock_probe(struct of_device *op, const struct of_device_id
return 0;
}
static struct of_device_id clock_match[] = {
static struct of_device_id __initdata clock_match[] = {
{
.name = "eeprom",
},
......
......@@ -109,7 +109,7 @@ void auxio_set_lte(int on)
}
}
static struct of_device_id auxio_match[] = {
static struct of_device_id __initdata auxio_match[] = {
{
.name = "auxio",
},
......
......@@ -801,7 +801,7 @@ static int __devexit us3mc_remove(struct of_device *op)
return 0;
}
static struct of_device_id us3mc_match[] = {
static const struct of_device_id us3mc_match[] = {
{
.name = "memory-controller",
},
......
......@@ -547,7 +547,7 @@ static int __devinit fire_probe(struct of_device *op,
return err;
}
static struct of_device_id fire_match[] = {
static struct of_device_id __initdata fire_match[] = {
{
.name = "pci",
.compatible = "pciex108e,80f0",
......
......@@ -1099,7 +1099,7 @@ static int __devinit psycho_probe(struct of_device *op,
return err;
}
static struct of_device_id psycho_match[] = {
static struct of_device_id __initdata psycho_match[] = {
{
.name = "pci",
.compatible = "pci108e,8000",
......
......@@ -885,7 +885,7 @@ static int __devinit sabre_probe(struct of_device *op,
return err;
}
static struct of_device_id sabre_match[] = {
static struct of_device_id __initdata sabre_match[] = {
{
.name = "pci",
.compatible = "pci108e,a001",
......
......@@ -1504,7 +1504,7 @@ static int __devinit schizo_probe(struct of_device *op,
* and pci108e,8001. So list the chips in reverse chronological
* order.
*/
static struct of_device_id schizo_match[] = {
static struct of_device_id __initdata schizo_match[] = {
{
.name = "pci",
.compatible = "pci108e,a801",
......
......@@ -1026,7 +1026,7 @@ static int __devinit pci_sun4v_probe(struct of_device *op,
return -ENOMEM;
}
static struct of_device_id pci_sun4v_match[] = {
static struct of_device_id __initdata pci_sun4v_match[] = {
{
.name = "pci",
.compatible = "SUNW,sun4v-pci",
......
......@@ -89,7 +89,7 @@ static int __devinit power_probe(struct of_device *op, const struct of_device_id
return 0;
}
static struct of_device_id power_match[] = {
static struct of_device_id __initdata power_match[] = {
{
.name = "power",
},
......
......@@ -438,7 +438,7 @@ static int __devinit rtc_probe(struct of_device *op, const struct of_device_id *
return platform_device_register(&rtc_cmos_device);
}
static struct of_device_id rtc_match[] = {
static struct of_device_id __initdata rtc_match[] = {
{
.name = "rtc",
.compatible = "m5819",
......@@ -482,7 +482,7 @@ static int __devinit bq4802_probe(struct of_device *op, const struct of_device_i
return platform_device_register(&rtc_bq4802_device);
}
static struct of_device_id bq4802_match[] = {
static struct of_device_id __initdata bq4802_match[] = {
{
.name = "rtc",
.compatible = "bq4802",
......@@ -566,7 +566,7 @@ static int __devinit mostek_probe(struct of_device *op, const struct of_device_i
return platform_device_register(&m48t59_rtc);
}
static struct of_device_id mostek_match[] = {
static struct of_device_id __initdata mostek_match[] = {
{
.name = "eeprom",
},
......
......@@ -2685,7 +2685,7 @@ static int __devexit fore200e_sba_remove(struct of_device *op)
return 0;
}
static struct of_device_id fore200e_sba_match[] = {
static const struct of_device_id fore200e_sba_match[] = {
{
.name = SBA200E_PROM_NAME,
.data = (void *) &fore200e_bus[1],
......
......@@ -736,7 +736,7 @@ static int __devexit n2rng_remove(struct of_device *op)
return 0;
}
static struct of_device_id n2rng_match[] = {
static const struct of_device_id n2rng_match[] = {
{
.name = "random-number-generator",
.compatible = "SUNW,n2-rng",
......
......@@ -290,7 +290,7 @@ static int __devexit env_remove(struct of_device *op)
return 0;
}
static struct of_device_id env_match[] = {
static const struct of_device_id env_match[] = {
{
.name = "env-monitor",
.compatible = "SUNW,ebus-pic16f747-env",
......
......@@ -249,7 +249,7 @@ static int bbc_remove(struct of_device *op)
return 0;
}
static struct of_device_id bbc_beep_match[] = {
static const struct of_device_id bbc_beep_match[] = {
{
.name = "beep",
.compatible = "SUNW,bbc-beep",
......@@ -328,7 +328,7 @@ static int grover_remove(struct of_device *op)
return 0;
}
static struct of_device_id grover_beep_match[] = {
static const struct of_device_id grover_beep_match[] = {
{
.name = "beep",
.compatible = "SUNW,smbus-beep",
......
......@@ -87,7 +87,7 @@ static int __devexit sparc_i8042_remove(struct of_device *op)
return 0;
}
static struct of_device_id sparc_i8042_match[] = {
static const struct of_device_id sparc_i8042_match[] = {
{
.name = "8042",
},
......
......@@ -138,7 +138,7 @@ static int __devexit uflash_remove(struct of_device *op)
return 0;
}
static struct of_device_id uflash_match[] = {
static const struct of_device_id uflash_match[] = {
{
.name = UFLASH_OBPNAME,
},
......
......@@ -1125,7 +1125,7 @@ static int __devexit myri_sbus_remove(struct of_device *op)
return 0;
}
static struct of_device_id myri_sbus_match[] = {
static const struct of_device_id myri_sbus_match[] = {
{
.name = "MYRICOM,mlanai",
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment