diff options
author | Pali Rohár <pali@kernel.org> | 2021-11-26 15:43:07 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2022-01-06 13:37:47 +0000 |
commit | 0746ae1be12177ebda0666eefa82583cbaeeefd6 (patch) | |
tree | 2ea1c6aeeb36750c367766ecca68e987f83fe8d4 /drivers/pci/controller/Kconfig | |
parent | 859186e238ffb7ca980dbb7af9abd799ceedbcb3 (diff) | |
download | linux-stable-0746ae1be12177ebda0666eefa82583cbaeeefd6.tar.gz linux-stable-0746ae1be12177ebda0666eefa82583cbaeeefd6.tar.bz2 linux-stable-0746ae1be12177ebda0666eefa82583cbaeeefd6.zip |
PCI: mvebu: Add support for compiling driver as module
Now when driver uses devm_pci_remap_iospace() function, it is possible
implement ->remove() callback for unbinding device from driver.
Implement mvebu_pcie_remove() callback with proper cleanup phase, drop
driver's suppress_bind_attrs flag and switch type of CONFIG_PCI_MVEBU
option from bool to tristate.
This allows to compile pci-mvebu.c driver as loadable module pci-mvebu.ko
with ability to unload it.
Link: https://lore.kernel.org/r/20211126144307.7568-3-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/controller/Kconfig')
-rw-r--r-- | drivers/pci/controller/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig index 93b141110537..67189bcd5d89 100644 --- a/drivers/pci/controller/Kconfig +++ b/drivers/pci/controller/Kconfig @@ -4,7 +4,7 @@ menu "PCI controller drivers" depends on PCI config PCI_MVEBU - bool "Marvell EBU PCIe controller" + tristate "Marvell EBU PCIe controller" depends on ARCH_MVEBU || ARCH_DOVE || COMPILE_TEST depends on MVEBU_MBUS depends on ARM |