Skip to content

Commit 6ea810c

Browse files
krzkbebarino
authored andcommitted
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: Krzysztof Kozlowski <[email protected]> Reviewed-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 45b2fb0 commit 6ea810c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/sifive/sifive-prci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ static const struct of_device_id sifive_prci_of_match[] = {
611611
{.compatible = "sifive,fu740-c000-prci", .data = &prci_clk_fu740},
612612
{}
613613
};
614+
MODULE_DEVICE_TABLE(of, sifive_prci_of_match);
614615

615616
static struct platform_driver sifive_prci_driver = {
616617
.driver = {

0 commit comments

Comments
 (0)