Skip to content

Commit

Permalink
PCI: imx6: Fix imx6_add_pcie_port() section mismatch warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Bjorn Helgaas committed May 30, 2014
1 parent c9eaa44 commit 44cb5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/host/pci-imx6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 44cb5e9

Please sign in to comment.