PCI: dra7xx: Add __init annotation to dra7xx_add_pcie_port()
authorJingoo Han <jg1.han@samsung.com>
Thu, 6 Nov 2014 05:37:39 +0000 (14:37 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Nov 2014 16:49:15 +0000 (09:49 -0700)
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>
drivers/pci/host/pci-dra7xx.c

index 5b4a644c805808bbee951bdd158c3365aeeb2683..8c6969747acdd61fe7879271c0df2f609d96772a 100644 (file)
@@ -270,8 +270,8 @@ static irqreturn_t dra7xx_pcie_irq_handler(int irq, void *arg)
        return IRQ_HANDLED;
 }
 
-static int dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx,
-                               struct platform_device *pdev)
+static int __init dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx,
+                                      struct platform_device *pdev)
 {
        int ret;
        struct pcie_port *pp;