diff options
author | Niklas Cassel <niklas.cassel@axis.com> | 2016-09-09 03:45:30 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-09-14 17:20:47 -0400 |
commit | b58ddf17470aeaaed2dde0de7cbfdc88065f1d88 (patch) | |
tree | a27dfcbc910a421d104a6d960ec29d6bb70beca5 | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
PCI: artpec6: Drop __init from artpec6_add_pcie_port()
artpec6_add_pcie_port() is called from artpec6_pcie_probe(), which is not
marked __init. It is wrong to call an __init function from a non-__init
one, so remove __init from artpec6_add_pcie_port().
[bhelgaas: changelog]
Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/pci/host/pcie-artpec6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/host/pcie-artpec6.c b/drivers/pci/host/pcie-artpec6.c index 16ba70b7ec65..39bf1a6df463 100644 --- a/drivers/pci/host/pcie-artpec6.c +++ b/drivers/pci/host/pcie-artpec6.c | |||
@@ -191,8 +191,8 @@ static irqreturn_t artpec6_pcie_msi_handler(int irq, void *arg) | |||
191 | return dw_handle_msi_irq(pp); | 191 | return dw_handle_msi_irq(pp); |
192 | } | 192 | } |
193 | 193 | ||
194 | static int __init artpec6_add_pcie_port(struct pcie_port *pp, | 194 | static int artpec6_add_pcie_port(struct pcie_port *pp, |
195 | struct platform_device *pdev) | 195 | struct platform_device *pdev) |
196 | { | 196 | { |
197 | int ret; | 197 | int ret; |
198 | 198 | ||