diff options
| author | 2014-09-10 21:56:38 +0200 | |
|---|---|---|
| committer | 2014-09-25 23:14:46 +1000 | |
| commit | ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe (patch) | |
| tree | 004b418dc22e1e6be5b8ba27d229a67a4ceee4df /arch/powerpc/sysdev/xilinx_pci.c | |
| parent | powerpc/jump_label: use HAVE_JUMP_LABEL? (diff) | |
| download | linux-dev-ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe.tar.xz linux-dev-ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe.zip | |
powerpc: make of_device_ids const
of_device_ids (i.e. compatible strings and the respective data) 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. This allows to
mark all struct of_device_id const, too.
While touching these line also put the __init annotation at the right
position where necessary.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/sysdev/xilinx_pci.c')
| -rw-r--r-- | arch/powerpc/sysdev/xilinx_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/xilinx_pci.c b/arch/powerpc/sysdev/xilinx_pci.c index 1453b0eed220..fea5667699ed 100644 --- a/arch/powerpc/sysdev/xilinx_pci.c +++ b/arch/powerpc/sysdev/xilinx_pci.c @@ -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", }, {} }; |
