diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-11-06 00:38:18 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-11-13 11:46:47 -0500 |
commit | 992e7bd2be1817d6327febebcfff7ab836a3306c (patch) | |
tree | 3b3bb33d055d0830f253ed1ddcf8aebadba78b6b | |
parent | a9875d83a0ae57a18f9c9f70c2ac524b81cc2cbe (diff) |
PCI: spear: Add __init annotation to spear13xx_add_pcie_port()
Add __init annotation to spear13xx_add_pcie_port(), because
spear13xx_add_pcie_port() is called only by spear13xx_pcie_probe(), which
is marked __init. This fixes a section mismatch warning:
WARNING: drivers/pci/host/built-in.o(.text.unlikely+0x94): Section mismatch in reference from the function spear13xx_add_pcie_port() to the function .init.text:dw_pcie_host_init()
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
-rw-r--r-- | drivers/pci/host/pcie-spear13xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 63f869f953e1..60f43cd96854 100644 --- a/drivers/pci/host/pcie-spear13xx.c +++ b/drivers/pci/host/pcie-spear13xx.c | |||
@@ -269,8 +269,8 @@ static struct pcie_host_ops spear13xx_pcie_host_ops = { | |||
269 | .host_init = spear13xx_pcie_host_init, | 269 | .host_init = spear13xx_pcie_host_init, |
270 | }; | 270 | }; |
271 | 271 | ||
272 | static int spear13xx_add_pcie_port(struct pcie_port *pp, | 272 | static int __init spear13xx_add_pcie_port(struct pcie_port *pp, |
273 | struct platform_device *pdev) | 273 | struct platform_device *pdev) |
274 | { | 274 | { |
275 | struct device *dev = &pdev->dev; | 275 | struct device *dev = &pdev->dev; |
276 | int ret; | 276 | int ret; |