Skip to content

Commit a98d218

Browse files
khilmanLorenzo Pieralisi
authored andcommitted
PCI: meson: Build as module by default
Enable pci-meson to build as a module whenever ARCH_MESON is enabled. Link: https://lore.kernel.org/r/20200918181251.32423-1-khilman@baylibre.com Signed-off-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Cc: Yue Wang <yue.wang@amlogic.com>
1 parent 9123e3a commit a98d218

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎drivers/pci/controller/dwc/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ config PCIE_HISI_STB
237237
Say Y here if you want PCIe controller support on HiSilicon STB SoCs
238238

239239
config PCI_MESON
240-
bool "MESON PCIe controller"
240+
tristate "MESON PCIe controller"
241241
depends on PCI_MSI_IRQ_DOMAIN
242+
default m if ARCH_MESON
242243
select PCIE_DW_HOST
243244
help
244245
Say Y here if you want to enable PCI controller support on Amlogic

‎drivers/pci/controller/dwc/pci-meson.c‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/resource.h>
1818
#include <linux/types.h>
1919
#include <linux/phy/phy.h>
20+
#include <linux/module.h>
2021

2122
#include "pcie-designware.h"
2223

@@ -589,6 +590,7 @@ static const struct of_device_id meson_pcie_of_match[] = {
589590
},
590591
{},
591592
};
593+
MODULE_DEVICE_TABLE(of, meson_pcie_of_match);
592594

593595
static struct platform_driver meson_pcie_driver = {
594596
.probe = meson_pcie_probe,
@@ -598,4 +600,8 @@ static struct platform_driver meson_pcie_driver = {
598600
},
599601
};
600602

601-
builtin_platform_driver(meson_pcie_driver);
603+
module_platform_driver(meson_pcie_driver);
604+
605+
MODULE_AUTHOR("Yue Wang <yue.wang@amlogic.com>");
606+
MODULE_DESCRIPTION("Amlogic PCIe Controller driver");
607+
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)