aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-16 15:17:13 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-16 16:10:28 -0400
commitda2ff527e44bf3af851c1e5d9ac82d248df35417 (patch)
tree37345a229622c302b6a46390c70ca4d41f8cf132 /drivers/char/ipmi
parent6893d9b51093cf499ee6217e98c50006ec2727c6 (diff)
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>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r--drivers/char/ipmi/ipmi_si_intf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index f6646ed3047e..e6a6da4ad2f7 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -2664,7 +2664,7 @@ static struct pci_driver ipmi_pci_driver = {
2664}; 2664};
2665#endif /* CONFIG_PCI */ 2665#endif /* CONFIG_PCI */
2666 2666
2667static struct of_device_id ipmi_match[]; 2667static const struct of_device_id ipmi_match[];
2668static int ipmi_probe(struct platform_device *dev) 2668static int ipmi_probe(struct platform_device *dev)
2669{ 2669{
2670#ifdef CONFIG_OF 2670#ifdef CONFIG_OF
@@ -2761,7 +2761,7 @@ static int ipmi_remove(struct platform_device *dev)
2761 return 0; 2761 return 0;
2762} 2762}
2763 2763
2764static struct of_device_id ipmi_match[] = 2764static const struct of_device_id ipmi_match[] =
2765{ 2765{
2766 { .type = "ipmi", .compatible = "ipmi-kcs", 2766 { .type = "ipmi", .compatible = "ipmi-kcs",
2767 .data = (void *)(unsigned long) SI_KCS }, 2767 .data = (void *)(unsigned long) SI_KCS },