]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: sifive: prci: fix module autoloading
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 4 Jun 2024 13:05:31 +0000 (15:05 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 4 Jun 2024 18:37:16 +0000 (11:37 -0700)
commit6ea810cfb80c054eff72f1a55b6dcd22486baa33
tree52303b10847794eacc95002f698e32d94463e0bc
parent45b2fb09384c645489f7b359c49ca879852e5cec
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>
drivers/clk/sifive/sifive-prci.c