]> Git Repo - linux.git/commitdiff
microblaze: add const to of_device_id
authorXiang wangx <[email protected]>
Sun, 12 Dec 2021 14:12:48 +0000 (22:12 +0800)
committerMichal Simek <[email protected]>
Mon, 24 Jan 2022 12:11:07 +0000 (13:11 +0100)
struct of_device_id should normally be const.

Signed-off-by: Xiang wangx <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
arch/microblaze/pci/xilinx_pci.c

index b800909ddccf712b95fb8cca3a72a45ea632c78a..f4cb86fffceead7850eff1059e7974162119973c 100644 (file)
@@ -27,7 +27,7 @@
 #define PCI_HOST_ENABLE_CMD (PCI_COMMAND_SERR | PCI_COMMAND_PARITY | \
                                PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY)
 
-static struct of_device_id xilinx_pci_match[] = {
+static const struct of_device_id xilinx_pci_match[] = {
        { .compatible = "xlnx,plbv46-pci-1.03.a", },
        {}
 };
This page took 0.056548 seconds and 4 git commands to generate.