clk: sifive: prci: fix module autoloading
Subsystems (3)
PATCH 1/1 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]>
--- drivers/clk/sifive/sifive-prci.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/sifive/sifive-prci.c +1 -0
@@ -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 = {
Signature · 1 line
2.34.1
Quoted 15 lines · Krzysztof Kozlowski
Add
MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias fromof_device_idtable. 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]>--- drivers/clk/sifive/sifive-prci.c | 1 + 1 file changed, 1 insertion(+)drivers/clk/sifive/sifive-prci.c +0
-0
drivers/clk/sifive/sifive-prci.c static const struct of_device_id sifive_prci_of_match[] = { · line 617
Quoted 7 lines
drivers/clk/sifive/sifive-prci.c +1
-0@@ -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 = {
Reviewed-by Samuel Holland <[email protected]>