summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-06-12 14:59:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-06-13 09:13:04 +0200
commit2baa16f2740b4546b1ec16390ec118ecba6be09d (patch)
tree78ff5703fb6d24aa08d6a5d898ed11ebf85d4396 /drivers/soc
parentcfcd097c843194a6b88b03948afca3c4c547eca6 (diff)
downloadbarebox-2baa16f2740b4546b1ec16390ec118ecba6be09d.tar.gz
barebox-2baa16f2740b4546b1ec16390ec118ecba6be09d.tar.xz
treewide: add MODULE_DEVICE_TABLE markers
Syncing device trees with Linux upstream can lead to breakage, when the device trees are switched to newer bindings, which are not yet supported in barebox. To make it easier to spot such issues, we want to start applying some heuristics to flag possibly problematic DT changes. One step towards being able to do that is to know what nodes barebox actually consumes. Most of the nodes have a compatible entry, which is matched by an array of of_device_id, so let's have MODULE_DEVICE_TABLE point at it for future extraction. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230612125908.1087340-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/imx/gpcv2.c1
-rw-r--r--drivers/soc/kvx/kvx_socinfo.c1
-rw-r--r--drivers/soc/rockchip/io-domain.c1
-rw-r--r--drivers/soc/sifive/sifive_l2_cache.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
index b662363f79..57d9dcc99d 100644
--- a/drivers/soc/imx/gpcv2.c
+++ b/drivers/soc/imx/gpcv2.c
@@ -1305,6 +1305,7 @@ static const struct of_device_id imx_gpcv2_dt_ids[] = {
{ .compatible = "fsl,imx8mq-gpc", .data = &imx8m_pgc_domain_data, },
{ }
};
+MODULE_DEVICE_TABLE(of, imx_gpcv2_dt_ids);
static struct driver imx_gpcv2_driver = {
.name = "imx-gpcv2",
diff --git a/drivers/soc/kvx/kvx_socinfo.c b/drivers/soc/kvx/kvx_socinfo.c
index 3cf8a978ab..8cac8899d2 100644
--- a/drivers/soc/kvx/kvx_socinfo.c
+++ b/drivers/soc/kvx/kvx_socinfo.c
@@ -132,6 +132,7 @@ static const struct of_device_id kvx_socinfo_dt_ids[] = {
{ .compatible = "kalray,kvx-socinfo" },
{ }
};
+MODULE_DEVICE_TABLE(of, kvx_socinfo_dt_ids);
static struct driver kvx_socinfo_driver = {
.name = "kvx-socinfo",
diff --git a/drivers/soc/rockchip/io-domain.c b/drivers/soc/rockchip/io-domain.c
index bb3bc9965d..5b32dad9ed 100644
--- a/drivers/soc/rockchip/io-domain.c
+++ b/drivers/soc/rockchip/io-domain.c
@@ -125,6 +125,7 @@ static const struct of_device_id rockchip_iodomain_match[] = {
.data = &soc_data_rk3568_pmu },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, rockchip_iodomain_match);
static int rockchip_iodomain_probe(struct device *dev)
{
diff --git a/drivers/soc/sifive/sifive_l2_cache.c b/drivers/soc/sifive/sifive_l2_cache.c
index 03945e9bea..aab21f9f50 100644
--- a/drivers/soc/sifive/sifive_l2_cache.c
+++ b/drivers/soc/sifive/sifive_l2_cache.c
@@ -127,6 +127,7 @@ static const struct of_device_id sifive_l2_ids[] = {
{ .compatible = "starfive,ccache0" },
{ /* end of table */ },
};
+MODULE_DEVICE_TABLE(of, sifive_l2_ids);
static struct driver sifive_l2_driver = {
.name = "sfive-l2cache",