clk: meson: s4: fix module autoloading
PATCH 1/1 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.
--- drivers/clk/meson/s4-peripherals.c | 1 + drivers/clk/meson/s4-pll.c | 1 + 2 files changed, 2 insertions(+)
drivers/clk/meson/s4-peripherals.c +1 -0
@@ -3799,6 +3799,7 @@ static const struct of_device_id clkc_match_table[] = { }, {} }; +MODULE_DEVICE_TABLE (of, clkc_match_table);static struct platform_driver s4_driver = { .probe = meson_s4_periphs_probe,
drivers/clk/meson/s4-pll.c +1 -0
@@ -853,6 +853,7 @@ static const struct of_device_id clkc_match_table[] = { }, {} }; +MODULE_DEVICE_TABLE (of, clkc_match_table);static struct platform_driver s4_driver = { .probe = meson_s4_pll_probe,
Signature · 1 line
2.34.1
Quoted 28 lines · Krzysztof Kozlowski
Add
MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias fromof_device_idtable. 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 Krzysztof Kozlowski <[email protected]>--- drivers/clk/meson/s4-peripherals.c | 1 + drivers/clk/meson/s4-pll.c | 1 + 2 files changed, 2 insertions(+)drivers/clk/meson/s4-peripherals.c +1
-0@@ -3799,6 +3799,7 @@ static const struct of_device_id clkc_match_table[] = { }, {} }; +MODULE_DEVICE_TABLE (of, clkc_match_table);static struct platform_driver s4_driver = { .probe = meson_s4_periphs_probe,drivers/clk/meson/s4-pll.c +0
-0
drivers/clk/meson/s4-pll.c static const struct of_device_id clkc_match_table[] = { · line 859
Quoted 7 lines
drivers/clk/meson/s4-pll.c +1
-0@@ -853,6 +853,7 @@ static const struct of_device_id clkc_match_table[] = { }, {} }; +MODULE_DEVICE_TABLE (of, clkc_match_table);static struct platform_driver s4_driver = { .probe = meson_s4_pll_probe,
Quoted 7 lines · Krzysztof Kozlowski
Add
MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias fromof_device_idtable. 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 Krzysztof Kozlowski <[email protected]>
Applied to clk-meson (v6.10/drivers), thanks!
[1/1] clk: meson: s4: fix module autoloading
https://github.com/BayLibre/clk-meson/commit/11981485e27c
Best regards,
--
Jerome