Commit 6ea810cf authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Stephen Boyd

clk: sifive: prci: 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: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: default avatarSamuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240604130531.170371-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 45b2fb09
...@@ -611,6 +611,7 @@ static const struct of_device_id sifive_prci_of_match[] = { ...@@ -611,6 +611,7 @@ static const struct of_device_id sifive_prci_of_match[] = {
{.compatible = "sifive,fu740-c000-prci", .data = &prci_clk_fu740}, {.compatible = "sifive,fu740-c000-prci", .data = &prci_clk_fu740},
{} {}
}; };
MODULE_DEVICE_TABLE(of, sifive_prci_of_match);
static struct platform_driver sifive_prci_driver = { static struct platform_driver sifive_prci_driver = {
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment