From: Krzysztof Kozlowski Date: Tue, 4 Jun 2024 13:05:31 +0000 (+0200) Subject: clk: sifive: prci: fix module autoloading X-Git-Tag: v6.11-rc1~109^2~2^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6ea810cfb80c054eff72f1a55b6dcd22486baa33;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Samuel Holland Link: https://lore.kernel.org/r/20240604130531.170371-1-krzysztof.kozlowski@linaro.org Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/sifive/sifive-prci.c b/drivers/clk/sifive/sifive-prci.c index 25b8e1a80ddce..700a1be9ec470 100644 --- a/drivers/clk/sifive/sifive-prci.c +++ b/drivers/clk/sifive/sifive-prci.c @@ -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 = {