mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
char: constify of_device_id array
of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6893d9b510
commit
da2ff527e4
5 changed files with 6 additions and 6 deletions
|
@ -133,7 +133,7 @@ static int rng_remove(struct platform_device *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id rng_match[] = {
|
static const struct of_device_id rng_match[] = {
|
||||||
{ .compatible = "1682m-rng", },
|
{ .compatible = "1682m-rng", },
|
||||||
{ .compatible = "pasemi,pwrficient-rng", },
|
{ .compatible = "pasemi,pwrficient-rng", },
|
||||||
{ },
|
{ },
|
||||||
|
|
|
@ -61,7 +61,7 @@ static int powernv_rng_probe(struct platform_device *pdev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id powernv_rng_match[] = {
|
static const struct of_device_id powernv_rng_match[] = {
|
||||||
{ .compatible = "ibm,power-rng",},
|
{ .compatible = "ibm,power-rng",},
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
|
|
|
@ -123,7 +123,7 @@ static int ppc4xx_rng_remove(struct platform_device *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id ppc4xx_rng_match[] = {
|
static const struct of_device_id ppc4xx_rng_match[] = {
|
||||||
{ .compatible = "ppc4xx-rng", },
|
{ .compatible = "ppc4xx-rng", },
|
||||||
{ .compatible = "amcc,ppc460ex-rng", },
|
{ .compatible = "amcc,ppc460ex-rng", },
|
||||||
{ .compatible = "amcc,ppc440epx-rng", },
|
{ .compatible = "amcc,ppc440epx-rng", },
|
||||||
|
|
|
@ -2664,7 +2664,7 @@ static struct pci_driver ipmi_pci_driver = {
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_PCI */
|
#endif /* CONFIG_PCI */
|
||||||
|
|
||||||
static struct of_device_id ipmi_match[];
|
static const struct of_device_id ipmi_match[];
|
||||||
static int ipmi_probe(struct platform_device *dev)
|
static int ipmi_probe(struct platform_device *dev)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_OF
|
#ifdef CONFIG_OF
|
||||||
|
@ -2761,7 +2761,7 @@ static int ipmi_remove(struct platform_device *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id ipmi_match[] =
|
static const struct of_device_id ipmi_match[] =
|
||||||
{
|
{
|
||||||
{ .type = "ipmi", .compatible = "ipmi-kcs",
|
{ .type = "ipmi", .compatible = "ipmi-kcs",
|
||||||
.data = (void *)(unsigned long) SI_KCS },
|
.data = (void *)(unsigned long) SI_KCS },
|
||||||
|
|
|
@ -31,7 +31,7 @@ MODULE_LICENSE("GPL v2");
|
||||||
static const char xillyname[] = "xillybus_of";
|
static const char xillyname[] = "xillybus_of";
|
||||||
|
|
||||||
/* Match table for of_platform binding */
|
/* Match table for of_platform binding */
|
||||||
static struct of_device_id xillybus_of_match[] = {
|
static const struct of_device_id xillybus_of_match[] = {
|
||||||
{ .compatible = "xillybus,xillybus-1.00.a", },
|
{ .compatible = "xillybus,xillybus-1.00.a", },
|
||||||
{ .compatible = "xlnx,xillybus-1.00.a", }, /* Deprecated */
|
{ .compatible = "xlnx,xillybus-1.00.a", }, /* Deprecated */
|
||||||
{}
|
{}
|
||||||
|
|
Loading…
Reference in a new issue