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:
03949b1
)
sparc: leon: grpci1: constify of_device_id
author
Arvind Yadav
<
[email protected]
>
Sat, 26 Aug 2017 11:28:48 +0000
(16:58 +0530)
committer
David S. Miller
<
[email protected]
>
Mon, 28 Aug 2017 22:48:46 +0000
(15:48 -0700)
of_device_id are not supposed to change at runtime. All functions
working with of_device_id provided by <linux/of.h> work with const
of_device_ids. So mark the const and __initconst.
Signed-off-by: Arvind Yadav <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
arch/sparc/kernel/leon_pci_grpci1.c
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/leon_pci_grpci1.c
b/arch/sparc/kernel/leon_pci_grpci1.c
index 1e77128a8f881b9670342d17f7f67d44d38b8698..83ba5005d44c1d59f4a5b773c602a50d7096d5bf 100644
(file)
--- a/
arch/sparc/kernel/leon_pci_grpci1.c
+++ b/
arch/sparc/kernel/leon_pci_grpci1.c
@@
-695,7
+695,7
@@
err1:
return err;
}
-static
struct of_device_id grpci1_of_match[]
= {
+static
const struct of_device_id grpci1_of_match[] __initconst
= {
{
.name = "GAISLER_PCIFBRG",
},