PCI: dwc: Constify dw_pcie_host_ops structures
The dw_pcie_host_ops structures are never modified. Constify these structures such that these can be write-protected. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Jingoo Han <jingoohan1@gmail.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:

committed by
Bjorn Helgaas

parent
3eefa790c9
commit
4ab2e7c0df
@@ -602,7 +602,7 @@ static int imx6_pcie_link_up(struct dw_pcie *pci)
|
||||
PCIE_PHY_DEBUG_R1_XMLH_LINK_UP;
|
||||
}
|
||||
|
||||
static struct dw_pcie_host_ops imx6_pcie_host_ops = {
|
||||
static const struct dw_pcie_host_ops imx6_pcie_host_ops = {
|
||||
.host_init = imx6_pcie_host_init,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user