]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: imx6: Fix imx6_add_pcie_port() section mismatch warning
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 30 May 2014 06:38:48 +0000 (12:08 +0530)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:44 +0000 (21:18 -0600)
commite8572bd1dde42aa29bd5f047bfe2c49e1b74e3cb
treed0a7b328aa9b3cdfaedf874befa59edb079fcb5a
parent9e525a31843c0a0e983e83a2fbb5b595f550cf5d
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>
(cherry picked from commit 44cb5e94f96cef72a977fc5fdea8095bc0ae25ba)
drivers/pci/host/pci-imx6.c