]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: sifive: prci: fix module autoloading
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 4 Jun 2024 13:05:31 +0000 (15:05 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 4 Jun 2024 18:37:16 +0000 (11:37 -0700)
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: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240604130531.170371-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/sifive/sifive-prci.c

index 25b8e1a80ddce0bf0f88428ea79d2ec45b11e1e2..700a1be9ec47035220d64234fa21bacd088d2e41 100644 (file)
@@ -611,6 +611,7 @@ static const struct of_device_id sifive_prci_of_match[] = {
        {.compatible = "sifive,fu740-c000-prci", .data = &prci_clk_fu740},
        {}
 };
+MODULE_DEVICE_TABLE(of, sifive_prci_of_match);
 
 static struct platform_driver sifive_prci_driver = {
        .driver = {