[PATCH 1/1] PCI: imx6: Annotate imx6_add_pcie_port with __init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



imx6_add_pcie_port is called from probe which is annotated with __init.
imx6_add_pcie_port calls dw_pcie_host_init which is also annotated with
__init. Thus it makes sense to annotate imx6_add_pcie_port with __init.

Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>
Cc: Sean Cross <xobs@xxxxxxxxxx>
---
 drivers/pci/host/pci-imx6.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
index ee082509b0ba..facbf8faa353 100644
--- a/drivers/pci/host/pci-imx6.c
+++ b/drivers/pci/host/pci-imx6.c
@@ -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;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux