PCI: mvebu: Constify mvebu_pcie_pm_ops structure
authorJisheng Zhang <jszhang@marvell.com>
Wed, 16 Mar 2016 09:59:40 +0000 (17:59 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 7 Apr 2016 16:48:14 +0000 (11:48 -0500)
The mvebu_pcie_pm_ops structure is never modified, so declare it as const.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
drivers/pci/host/pci-mvebu.c

index 53b79c5..6c43cb8 100644 (file)
@@ -1298,7 +1298,7 @@ static const struct of_device_id mvebu_pcie_of_match_table[] = {
 };
 MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table);
 
-static struct dev_pm_ops mvebu_pcie_pm_ops = {
+static const struct dev_pm_ops mvebu_pcie_pm_ops = {
        .suspend_noirq = mvebu_pcie_suspend,
        .resume_noirq = mvebu_pcie_resume,
 };