Commit 11981485 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Jerome Brunet

clk: meson: s4: 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>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20240410155406.224128-1-krzk@kernel.orgSigned-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
parent e0892cb4
...@@ -3800,6 +3800,7 @@ static const struct of_device_id clkc_match_table[] = { ...@@ -3800,6 +3800,7 @@ static const struct of_device_id clkc_match_table[] = {
}, },
{} {}
}; };
MODULE_DEVICE_TABLE(of, clkc_match_table);
static struct platform_driver s4_driver = { static struct platform_driver s4_driver = {
.probe = meson_s4_periphs_probe, .probe = meson_s4_periphs_probe,
......
...@@ -854,6 +854,7 @@ static const struct of_device_id clkc_match_table[] = { ...@@ -854,6 +854,7 @@ static const struct of_device_id clkc_match_table[] = {
}, },
{} {}
}; };
MODULE_DEVICE_TABLE(of, clkc_match_table);
static struct platform_driver s4_driver = { static struct platform_driver s4_driver = {
.probe = meson_s4_pll_probe, .probe = meson_s4_pll_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