提交 b0308c54 编写于 作者: B Brian Norris 提交者: Bjorn Helgaas

PCI: rockchip: Modularize

Now that we've exported pci_remap_iospace() and added proper remove()
support, there's no reason this can't be a loadable module.
Signed-off-by: NBrian Norris <briannorris@chromium.org>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Acked-by: NShawn Lin <shawn.lin@rock-chips.com>
上级 f90b0875
...@@ -164,7 +164,7 @@ config PCI_HOST_THUNDER_ECAM ...@@ -164,7 +164,7 @@ config PCI_HOST_THUNDER_ECAM
Say Y here if you want ECAM support for CN88XX-Pass-1.x Cavium Thunder SoCs. Say Y here if you want ECAM support for CN88XX-Pass-1.x Cavium Thunder SoCs.
config PCIE_ROCKCHIP config PCIE_ROCKCHIP
bool "Rockchip PCIe controller" tristate "Rockchip PCIe controller"
depends on ARCH_ROCKCHIP || COMPILE_TEST depends on ARCH_ROCKCHIP || COMPILE_TEST
depends on OF depends on OF
depends on PCI_MSI_IRQ_DOMAIN depends on PCI_MSI_IRQ_DOMAIN
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <linux/irqdomain.h> #include <linux/irqdomain.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/mfd/syscon.h> #include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_device.h> #include <linux/of_device.h>
#include <linux/of_pci.h> #include <linux/of_pci.h>
...@@ -1468,6 +1469,7 @@ static const struct of_device_id rockchip_pcie_of_match[] = { ...@@ -1468,6 +1469,7 @@ static const struct of_device_id rockchip_pcie_of_match[] = {
{ .compatible = "rockchip,rk3399-pcie", }, { .compatible = "rockchip,rk3399-pcie", },
{} {}
}; };
MODULE_DEVICE_TABLE(of, rockchip_pcie_of_match);
static struct platform_driver rockchip_pcie_driver = { static struct platform_driver rockchip_pcie_driver = {
.driver = { .driver = {
...@@ -1478,4 +1480,8 @@ static struct platform_driver rockchip_pcie_driver = { ...@@ -1478,4 +1480,8 @@ static struct platform_driver rockchip_pcie_driver = {
.probe = rockchip_pcie_probe, .probe = rockchip_pcie_probe,
.remove = rockchip_pcie_remove, .remove = rockchip_pcie_remove,
}; };
builtin_platform_driver(rockchip_pcie_driver); module_platform_driver(rockchip_pcie_driver);
MODULE_AUTHOR("Rockchip Inc");
MODULE_DESCRIPTION("Rockchip AXI PCIe driver");
MODULE_LICENSE("GPL v2");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册