Skip to content

Commit

Permalink
sparc: kernel: pmc: make of_device_ids const.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ArvindYadavCs authored and davem330 committed Jul 3, 2017
1 parent a718d13 commit 0cd52df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 0cd52df

Please sign in to comment.