summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pci-imx6.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-05-30 08:38:48 +0200
committerBjorn Helgaas <bhelgaas@google.com>2014-05-30 17:45:58 +0200
commit44cb5e94f96cef72a977fc5fdea8095bc0ae25ba (patch)
tree100e210d4b33f62dafbfdd4c5c8ffe499efd6fc8 /drivers/pci/host/pci-imx6.c
parentLinux 3.15-rc1 (diff)
downloadlinux-44cb5e94f96cef72a977fc5fdea8095bc0ae25ba.tar.xz
linux-44cb5e94f96cef72a977fc5fdea8095bc0ae25ba.zip
PCI: imx6: Fix imx6_add_pcie_port() section mismatch warning
imx6_add_pcie_port() is called only from from imx6_pcie_probe() which is annotated with __init. Thus it makes sense to annotate imx6_add_pcie_port() with __init to avoid section mismatch warnings. [bhelgaas: changelog] Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Sean Cross <xobs@kosagi.com>
Diffstat (limited to '')
-rw-r--r--drivers/pci/host/pci-imx6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
index ee082509b0ba..facbf8faa353 100644
--- a/drivers/pci/host/pci-imx6.c
+++ b/drivers/pci/host/pci-imx6.c
@@ -487,7 +487,7 @@ static struct pcie_host_ops imx6_pcie_host_ops = {
.host_init = imx6_pcie_host_init,
};
-static int imx6_add_pcie_port(struct pcie_port *pp,
+static int __init imx6_add_pcie_port(struct pcie_port *pp,
struct platform_device *pdev)
{
int ret;