ahci: st: Make of_device_id array const
authorKiran Padwal <kiran.padwal21@gmail.com>
Tue, 22 Jul 2014 14:15:43 +0000 (19:45 +0530)
committerTejun 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

index 2595598df9ce6ff955b5e5471141ba54128dcd02..29821b9fd13d4c4533e43eb34c8ba2e05ac6fb7c 100644 (file)
@@ -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", },
        {},
 };