diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-11-06 00:37:39 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-11-13 11:49:15 -0500 |
commit | e73044a069c40b8c49c75f1869a07bd912801494 (patch) | |
tree | 2b67dc3a89cf331c4b38d03556baf0b62e99681a | |
parent | 23926c8dbd6fdca3da884fa6c2daa0d6a3cbddec (diff) |
PCI: dra7xx: Add __init annotation to dra7xx_add_pcie_port()
Add __init annotation to dra7xx_add_pcie_port(), because
dra7xx_add_pcie_port() is called only by dra7xx_pcie_probe() which is
marked __init. This patch fixes a section mismatch warning:
WARNING: drivers/pci/host/built-in.o(.text.unlikely+0xcc): Section mismatch in reference from the function dra7xx_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>
-rw-r--r-- | drivers/pci/host/pci-dra7xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/host/pci-dra7xx.c b/drivers/pci/host/pci-dra7xx.c index 5b4a644c8058..8c6969747acd 100644 --- a/drivers/pci/host/pci-dra7xx.c +++ b/drivers/pci/host/pci-dra7xx.c | |||
@@ -270,8 +270,8 @@ static irqreturn_t dra7xx_pcie_irq_handler(int irq, void *arg) | |||
270 | return IRQ_HANDLED; | 270 | return IRQ_HANDLED; |
271 | } | 271 | } |
272 | 272 | ||
273 | static int dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx, | 273 | static int __init dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx, |
274 | struct platform_device *pdev) | 274 | struct platform_device *pdev) |
275 | { | 275 | { |
276 | int ret; | 276 | int ret; |
277 | struct pcie_port *pp; | 277 | struct pcie_port *pp; |