summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pci-imx6.c
diff options
context:
space:
mode:
authorJindong <jindong.yue@nxp.com>2020-08-06 10:53:51 +0800
committerJindong <jindong.yue@nxp.com>2020-10-20 16:03:59 +0800
commit61b7aecf354c8e55cffc466be937c184b8aaadb0 (patch)
tree8cd8de654bb5e4496a1d8a7dac04060d4d2787eb /drivers/pci/controller/dwc/pci-imx6.c
parentf558657086f2773d962ae0e77e815f1e333f0958 (diff)
MA-17597-5 pci: controller: dwc: support module build
Support build PCI_IMX6 as module. Also export the dw_pcie_link_up() function to be able to build drivers Signed-off-by: Jindong <jindong.yue@nxp.com> Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-imx6.c')
-rw-r--r--drivers/pci/controller/dwc/pci-imx6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c
index e60c95615ce6..db979ecfe4ac 100644
--- a/drivers/pci/controller/dwc/pci-imx6.c
+++ b/drivers/pci/controller/dwc/pci-imx6.c
@@ -2084,7 +2084,7 @@ static const struct dw_pcie_ep_ops pcie_ep_ops = {
.get_features = imx_pcie_ep_get_features,
};
-static int __init imx_add_pcie_ep(struct imx6_pcie *imx6_pcie,
+static int imx_add_pcie_ep(struct imx6_pcie *imx6_pcie,
struct platform_device *pdev)
{
int ret;
@@ -2942,3 +2942,4 @@ static int __init imx6_pcie_init(void)
return platform_driver_register(&imx6_pcie_driver);
}
device_initcall(imx6_pcie_init);
+MODULE_LICENSE("GPL v2");