clk: meson: s4: fix module autoloading
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 10 Apr 2024 15:54:06 +0000 (17:54 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Fri, 3 May 2024 12:27:32 +0000 (14:27 +0200)
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>
drivers/clk/meson/s4-peripherals.c
drivers/clk/meson/s4-pll.c

index 1fceb93faf13d20a2303889b52fb8ea675d97e88..5e17ca50ab0917abb913d3d5e8421d3137aaaa4a 100644 (file)
@@ -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,
index c8a95842b14c6d64d18c34966d8d0ba535a74806..d2650d96400cff2fb3f5633bfeacf5e965c7f92e 100644 (file)
@@ -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,