projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c55c5dd
)
sparc: kernel: apc: make of_device_ids const
author
Arvind Yadav
<
[email protected]
>
Fri, 23 Jun 2017 09:21:35 +0000
(14:51 +0530)
committer
David S. Miller
<
[email protected]
>
Sun, 25 Jun 2017 20:39:02 +0000
(13:39 -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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
arch/sparc/kernel/apc.c
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/apc.c
b/arch/sparc/kernel/apc.c
index 9ebc37e7d64c21c2b24034904b3d0f9fcace9690..c988e7fa069b884ca99c9b65aa53b7c9b9bc1ea8 100644
(file)
--- a/
arch/sparc/kernel/apc.c
+++ b/
arch/sparc/kernel/apc.c
@@
-167,7
+167,7
@@
static int apc_probe(struct platform_device *op)
return 0;
}
-static struct of_device_id apc_match[] = {
+static
const
struct of_device_id apc_match[] = {
{
.name = APC_OBPNAME,
},