summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-06-23 12:29:52 +0300
committerBjorn Helgaas <bhelgaas@google.com>2017-07-03 02:45:31 +0300
commitbf44167f37a12bd353ed10fa706691d3f6e4b1a0 (patch)
tree15df3923f9c3bf671846f6bc071ed461d416873b
parenta8d992d8f8d4bf6051e7b9df86ffe21d8a78a472 (diff)
downloadlinux-bf44167f37a12bd353ed10fa706691d3f6e4b1a0.tar.xz
PCI: rcar-gen2: Make of_device_ids const
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by <linux/of.h> work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Simon Horman <horms+renesas@verge.net.au> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
-rw-r--r--drivers/pci/host/pci-rcar-gen2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-rcar-gen2.c b/drivers/pci/host/pci-rcar-gen2.c
index 85348590848b..6f879685fedd 100644
--- a/drivers/pci/host/pci-rcar-gen2.c
+++ b/drivers/pci/host/pci-rcar-gen2.c
@@ -429,7 +429,7 @@ static int rcar_pci_probe(struct platform_device *pdev)
return 0;
}
-static struct of_device_id rcar_pci_of_match[] = {
+static const struct of_device_id rcar_pci_of_match[] = {
{ .compatible = "renesas,pci-r8a7790", },
{ .compatible = "renesas,pci-r8a7791", },
{ .compatible = "renesas,pci-r8a7794", },