Skip to content

Commit 1198148

Browse files
krzkjbrun3t
authored andcommitted
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: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://lore.kernel.org/r/20240410155406.224128-1-krzk@kernel.org Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
1 parent e0892cb commit 1198148

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/clk/meson/s4-peripherals.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3800,6 +3800,7 @@ static const struct of_device_id clkc_match_table[] = {
38003800
},
38013801
{}
38023802
};
3803+
MODULE_DEVICE_TABLE(of, clkc_match_table);
38033804

38043805
static struct platform_driver s4_driver = {
38053806
.probe = meson_s4_periphs_probe,

drivers/clk/meson/s4-pll.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ static const struct of_device_id clkc_match_table[] = {
854854
},
855855
{}
856856
};
857+
MODULE_DEVICE_TABLE(of, clkc_match_table);
857858

858859
static struct platform_driver s4_driver = {
859860
.probe = meson_s4_pll_probe,

0 commit comments

Comments
 (0)