Skip to content

Commit

Permalink
clk: meson: s4: fix module autoloading
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
krzk authored and jbrun3t committed May 3, 2024
1 parent e0892cb commit 1198148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/clk/meson/s4-peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
.probe = meson_s4_periphs_probe,
Expand Down
1 change: 1 addition & 0 deletions drivers/clk/meson/s4-pll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
.probe = meson_s4_pll_probe,
Expand Down

0 comments on commit 1198148

Please sign in to comment.