Commit c60f6804 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Jernej Skrabec

clk: sunxi-ng: fix module autoloading

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.  Clocks are considered core
components, so usually they are built-in, however these can be built and
used as modules on some generic kernel.
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Acked-by: default avatarJernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20240410155420.224157-1-krzk@kernel.orgSigned-off-by: default avatarJernej Skrabec <jernej.skrabec@gmail.com>
parent 52b1429e
...@@ -125,6 +125,7 @@ static const struct of_device_id sun20i_d1_r_ccu_ids[] = { ...@@ -125,6 +125,7 @@ static const struct of_device_id sun20i_d1_r_ccu_ids[] = {
{ .compatible = "allwinner,sun20i-d1-r-ccu" }, { .compatible = "allwinner,sun20i-d1-r-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun20i_d1_r_ccu_ids);
static struct platform_driver sun20i_d1_r_ccu_driver = { static struct platform_driver sun20i_d1_r_ccu_driver = {
.probe = sun20i_d1_r_ccu_probe, .probe = sun20i_d1_r_ccu_probe,
......
...@@ -1394,6 +1394,7 @@ static const struct of_device_id sun20i_d1_ccu_ids[] = { ...@@ -1394,6 +1394,7 @@ static const struct of_device_id sun20i_d1_ccu_ids[] = {
{ .compatible = "allwinner,sun20i-d1-ccu" }, { .compatible = "allwinner,sun20i-d1-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun20i_d1_ccu_ids);
static struct platform_driver sun20i_d1_ccu_driver = { static struct platform_driver sun20i_d1_ccu_driver = {
.probe = sun20i_d1_ccu_probe, .probe = sun20i_d1_ccu_probe,
......
...@@ -1481,6 +1481,7 @@ static const struct of_device_id sun4i_a10_ccu_ids[] = { ...@@ -1481,6 +1481,7 @@ static const struct of_device_id sun4i_a10_ccu_ids[] = {
}, },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun4i_a10_ccu_ids);
static struct platform_driver sun4i_a10_ccu_driver = { static struct platform_driver sun4i_a10_ccu_driver = {
.probe = sun4i_a10_ccu_probe, .probe = sun4i_a10_ccu_probe,
......
...@@ -202,6 +202,7 @@ static const struct of_device_id sun50i_a100_r_ccu_ids[] = { ...@@ -202,6 +202,7 @@ static const struct of_device_id sun50i_a100_r_ccu_ids[] = {
{ .compatible = "allwinner,sun50i-a100-r-ccu" }, { .compatible = "allwinner,sun50i-a100-r-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun50i_a100_r_ccu_ids);
static struct platform_driver sun50i_a100_r_ccu_driver = { static struct platform_driver sun50i_a100_r_ccu_driver = {
.probe = sun50i_a100_r_ccu_probe, .probe = sun50i_a100_r_ccu_probe,
......
...@@ -1264,6 +1264,7 @@ static const struct of_device_id sun50i_a100_ccu_ids[] = { ...@@ -1264,6 +1264,7 @@ static const struct of_device_id sun50i_a100_ccu_ids[] = {
{ .compatible = "allwinner,sun50i-a100-ccu" }, { .compatible = "allwinner,sun50i-a100-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun50i_a100_ccu_ids);
static struct platform_driver sun50i_a100_ccu_driver = { static struct platform_driver sun50i_a100_ccu_driver = {
.probe = sun50i_a100_ccu_probe, .probe = sun50i_a100_ccu_probe,
......
...@@ -980,6 +980,7 @@ static const struct of_device_id sun50i_a64_ccu_ids[] = { ...@@ -980,6 +980,7 @@ static const struct of_device_id sun50i_a64_ccu_ids[] = {
{ .compatible = "allwinner,sun50i-a64-ccu" }, { .compatible = "allwinner,sun50i-a64-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun50i_a64_ccu_ids);
static struct platform_driver sun50i_a64_ccu_driver = { static struct platform_driver sun50i_a64_ccu_driver = {
.probe = sun50i_a64_ccu_probe, .probe = sun50i_a64_ccu_probe,
......
...@@ -244,6 +244,7 @@ static const struct of_device_id sun50i_h6_r_ccu_ids[] = { ...@@ -244,6 +244,7 @@ static const struct of_device_id sun50i_h6_r_ccu_ids[] = {
}, },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun50i_h6_r_ccu_ids);
static struct platform_driver sun50i_h6_r_ccu_driver = { static struct platform_driver sun50i_h6_r_ccu_driver = {
.probe = sun50i_h6_r_ccu_probe, .probe = sun50i_h6_r_ccu_probe,
......
...@@ -1259,6 +1259,7 @@ static const struct of_device_id sun50i_h6_ccu_ids[] = { ...@@ -1259,6 +1259,7 @@ static const struct of_device_id sun50i_h6_ccu_ids[] = {
{ .compatible = "allwinner,sun50i-h6-ccu" }, { .compatible = "allwinner,sun50i-h6-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun50i_h6_ccu_ids);
static struct platform_driver sun50i_h6_ccu_driver = { static struct platform_driver sun50i_h6_ccu_driver = {
.probe = sun50i_h6_ccu_probe, .probe = sun50i_h6_ccu_probe,
......
...@@ -1154,6 +1154,7 @@ static const struct of_device_id sun50i_h616_ccu_ids[] = { ...@@ -1154,6 +1154,7 @@ static const struct of_device_id sun50i_h616_ccu_ids[] = {
{ .compatible = "allwinner,sun50i-h616-ccu" }, { .compatible = "allwinner,sun50i-h616-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun50i_h616_ccu_ids);
static struct platform_driver sun50i_h616_ccu_driver = { static struct platform_driver sun50i_h616_ccu_driver = {
.probe = sun50i_h616_ccu_probe, .probe = sun50i_h616_ccu_probe,
......
...@@ -1271,6 +1271,7 @@ static const struct of_device_id sun6i_a31_ccu_ids[] = { ...@@ -1271,6 +1271,7 @@ static const struct of_device_id sun6i_a31_ccu_ids[] = {
{ .compatible = "allwinner,sun6i-a31-ccu" }, { .compatible = "allwinner,sun6i-a31-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun6i_a31_ccu_ids);
static struct platform_driver sun6i_a31_ccu_driver = { static struct platform_driver sun6i_a31_ccu_driver = {
.probe = sun6i_a31_ccu_probe, .probe = sun6i_a31_ccu_probe,
......
...@@ -336,6 +336,7 @@ static const struct of_device_id sun6i_rtc_ccu_match[] = { ...@@ -336,6 +336,7 @@ static const struct of_device_id sun6i_rtc_ccu_match[] = {
}, },
{}, {},
}; };
MODULE_DEVICE_TABLE(of, sun6i_rtc_ccu_match);
int sun6i_rtc_ccu_probe(struct device *dev, void __iomem *reg) int sun6i_rtc_ccu_probe(struct device *dev, void __iomem *reg)
{ {
......
...@@ -751,6 +751,7 @@ static const struct of_device_id sun8i_a23_ccu_ids[] = { ...@@ -751,6 +751,7 @@ static const struct of_device_id sun8i_a23_ccu_ids[] = {
{ .compatible = "allwinner,sun8i-a23-ccu" }, { .compatible = "allwinner,sun8i-a23-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun8i_a23_ccu_ids);
static struct platform_driver sun8i_a23_ccu_driver = { static struct platform_driver sun8i_a23_ccu_driver = {
.probe = sun8i_a23_ccu_probe, .probe = sun8i_a23_ccu_probe,
......
...@@ -823,6 +823,7 @@ static const struct of_device_id sun8i_a33_ccu_ids[] = { ...@@ -823,6 +823,7 @@ static const struct of_device_id sun8i_a33_ccu_ids[] = {
{ .compatible = "allwinner,sun8i-a33-ccu" }, { .compatible = "allwinner,sun8i-a33-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun8i_a33_ccu_ids);
static struct platform_driver sun8i_a33_ccu_driver = { static struct platform_driver sun8i_a33_ccu_driver = {
.probe = sun8i_a33_ccu_probe, .probe = sun8i_a33_ccu_probe,
......
...@@ -911,6 +911,7 @@ static const struct of_device_id sun8i_a83t_ccu_ids[] = { ...@@ -911,6 +911,7 @@ static const struct of_device_id sun8i_a83t_ccu_ids[] = {
{ .compatible = "allwinner,sun8i-a83t-ccu" }, { .compatible = "allwinner,sun8i-a83t-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun8i_a83t_ccu_ids);
static struct platform_driver sun8i_a83t_ccu_driver = { static struct platform_driver sun8i_a83t_ccu_driver = {
.probe = sun8i_a83t_ccu_probe, .probe = sun8i_a83t_ccu_probe,
......
...@@ -337,6 +337,7 @@ static const struct of_device_id sunxi_de2_clk_ids[] = { ...@@ -337,6 +337,7 @@ static const struct of_device_id sunxi_de2_clk_ids[] = {
}, },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sunxi_de2_clk_ids);
static struct platform_driver sunxi_de2_clk_driver = { static struct platform_driver sunxi_de2_clk_driver = {
.probe = sunxi_de2_clk_probe, .probe = sunxi_de2_clk_probe,
......
...@@ -1082,6 +1082,7 @@ static const struct of_device_id sun8i_h3_ccu_ids[] = { ...@@ -1082,6 +1082,7 @@ static const struct of_device_id sun8i_h3_ccu_ids[] = {
}, },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun8i_h3_ccu_ids);
static struct platform_driver sun8i_h3_ccu_driver = { static struct platform_driver sun8i_h3_ccu_driver = {
.probe = sun8i_h3_ccu_probe, .probe = sun8i_h3_ccu_probe,
......
...@@ -262,6 +262,7 @@ static const struct of_device_id sun8i_r_ccu_ids[] = { ...@@ -262,6 +262,7 @@ static const struct of_device_id sun8i_r_ccu_ids[] = {
}, },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun8i_r_ccu_ids);
static struct platform_driver sun8i_r_ccu_driver = { static struct platform_driver sun8i_r_ccu_driver = {
.probe = sun8i_r_ccu_probe, .probe = sun8i_r_ccu_probe,
......
...@@ -1363,6 +1363,7 @@ static const struct of_device_id sun8i_r40_ccu_ids[] = { ...@@ -1363,6 +1363,7 @@ static const struct of_device_id sun8i_r40_ccu_ids[] = {
{ .compatible = "allwinner,sun8i-r40-ccu" }, { .compatible = "allwinner,sun8i-r40-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun8i_r40_ccu_ids);
static struct platform_driver sun8i_r40_ccu_driver = { static struct platform_driver sun8i_r40_ccu_driver = {
.probe = sun8i_r40_ccu_probe, .probe = sun8i_r40_ccu_probe,
......
...@@ -768,6 +768,7 @@ static const struct of_device_id sun8i_v3s_ccu_ids[] = { ...@@ -768,6 +768,7 @@ static const struct of_device_id sun8i_v3s_ccu_ids[] = {
}, },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun8i_v3s_ccu_ids);
static struct platform_driver sun8i_v3s_ccu_driver = { static struct platform_driver sun8i_v3s_ccu_driver = {
.probe = sun8i_v3s_ccu_probe, .probe = sun8i_v3s_ccu_probe,
......
...@@ -254,6 +254,7 @@ static const struct of_device_id sun9i_a80_de_clk_ids[] = { ...@@ -254,6 +254,7 @@ static const struct of_device_id sun9i_a80_de_clk_ids[] = {
{ .compatible = "allwinner,sun9i-a80-de-clks" }, { .compatible = "allwinner,sun9i-a80-de-clks" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun9i_a80_de_clk_ids);
static struct platform_driver sun9i_a80_de_clk_driver = { static struct platform_driver sun9i_a80_de_clk_driver = {
.probe = sun9i_a80_de_clk_probe, .probe = sun9i_a80_de_clk_probe,
......
...@@ -127,6 +127,7 @@ static const struct of_device_id sun9i_a80_usb_clk_ids[] = { ...@@ -127,6 +127,7 @@ static const struct of_device_id sun9i_a80_usb_clk_ids[] = {
{ .compatible = "allwinner,sun9i-a80-usb-clks" }, { .compatible = "allwinner,sun9i-a80-usb-clks" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun9i_a80_usb_clk_ids);
static struct platform_driver sun9i_a80_usb_clk_driver = { static struct platform_driver sun9i_a80_usb_clk_driver = {
.probe = sun9i_a80_usb_clk_probe, .probe = sun9i_a80_usb_clk_probe,
......
...@@ -1236,6 +1236,7 @@ static const struct of_device_id sun9i_a80_ccu_ids[] = { ...@@ -1236,6 +1236,7 @@ static const struct of_device_id sun9i_a80_ccu_ids[] = {
{ .compatible = "allwinner,sun9i-a80-ccu" }, { .compatible = "allwinner,sun9i-a80-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, sun9i_a80_ccu_ids);
static struct platform_driver sun9i_a80_ccu_driver = { static struct platform_driver sun9i_a80_ccu_driver = {
.probe = sun9i_a80_ccu_probe, .probe = sun9i_a80_ccu_probe,
......
...@@ -565,6 +565,7 @@ static const struct of_device_id suniv_f1c100s_ccu_ids[] = { ...@@ -565,6 +565,7 @@ static const struct of_device_id suniv_f1c100s_ccu_ids[] = {
{ .compatible = "allwinner,suniv-f1c100s-ccu" }, { .compatible = "allwinner,suniv-f1c100s-ccu" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, suniv_f1c100s_ccu_ids);
static struct platform_driver suniv_f1c100s_ccu_driver = { static struct platform_driver suniv_f1c100s_ccu_driver = {
.probe = suniv_f1c100s_ccu_probe, .probe = suniv_f1c100s_ccu_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment