projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1183823
)
ahci: st: Make of_device_id array const
author
Kiran Padwal
<kiran.padwal21@gmail.com>
Tue, 22 Jul 2014 14:15:43 +0000
(19:45 +0530)
committer
Tejun Heo
<tj@kernel.org>
Tue, 22 Jul 2014 15:43:17 +0000
(11:43 -0400)
Make of_device_id array const, because all OF functions handle it as const.
Signed-off-by: Kiran Padwal <kiran.padwal21@gmail.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_st.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/ahci_st.c
b/drivers/ata/ahci_st.c
index 2595598df9ce6ff955b5e5471141ba54128dcd02..29821b9fd13d4c4533e43eb34c8ba2e05ac6fb7c 100644
(file)
--- a/
drivers/ata/ahci_st.c
+++ b/
drivers/ata/ahci_st.c
@@
-221,7
+221,7
@@
static int st_ahci_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(st_ahci_pm_ops, st_ahci_suspend, st_ahci_resume);
-static struct of_device_id st_ahci_match[] = {
+static
const
struct of_device_id st_ahci_match[] = {
{ .compatible = "st,ahci", },
{},
};