]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sparc: kernel: pmc: make of_device_ids const.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 27 Jun 2017 09:09:58 +0000 (14:39 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jul 2017 09:53:07 +0000 (02:53 -0700)
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: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/pmc.c

index f12b23f7b51570de14445cf9e23680279831d3e4..3b26cf62df6d6a7be0596ffc71dcf68e0fef6aab 100644 (file)
@@ -71,7 +71,7 @@ static int pmc_probe(struct platform_device *op)
        return 0;
 }
 
-static struct of_device_id pmc_match[] = {
+static const struct of_device_id pmc_match[] = {
        {
                .name = PMC_OBPNAME,
        },