Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Krzysztof Kozlowski and committed by
Stephen Boyd
6ea810cf 45b2fb09

+1
+1
drivers/clk/sifive/sifive-prci.c
··· 611 611 {.compatible = "sifive,fu740-c000-prci", .data = &prci_clk_fu740}, 612 612 {} 613 613 }; 614 + MODULE_DEVICE_TABLE(of, sifive_prci_of_match); 614 615 615 616 static struct platform_driver sifive_prci_driver = { 616 617 .driver = {