diff mbox series

clk: sifive: only build sifive-prci.o for CONFIG_CLK_SIFIVE_PRCI

Message ID 20230509135005.122650-1-ben.dooks@sifive.com
State Accepted
Commit c29cc110d7c2486c0b71edaccd8bc61cb77385a4
Delegated to: Andes
Headers show
Series clk: sifive: only build sifive-prci.o for CONFIG_CLK_SIFIVE_PRCI | expand

Commit Message

Ben Dooks May 9, 2023, 1:50 p.m. UTC
If we're building non FU540/FU740 SoC drivers, then the sifive-prci.o
is not needed. Only build this when CONFIG_CLK_SIFIVE_PRCI is selected.

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
---
 drivers/clk/sifive/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Leo Liang June 26, 2023, 2:49 a.m. UTC | #1
On Tue, May 09, 2023 at 02:50:05PM +0100, Ben Dooks wrote:
> If we're building non FU540/FU740 SoC drivers, then the sifive-prci.o
> is not needed. Only build this when CONFIG_CLK_SIFIVE_PRCI is selected.
> 
> Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
> ---
>  drivers/clk/sifive/Makefile | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
diff mbox series

Patch

diff --git a/drivers/clk/sifive/Makefile b/drivers/clk/sifive/Makefile
index 51348b1ddc..84859d92ab 100644
--- a/drivers/clk/sifive/Makefile
+++ b/drivers/clk/sifive/Makefile
@@ -1,5 +1,3 @@ 
 # SPDX-License-Identifier: GPL-2.0+
 
-obj-y += sifive-prci.o
-
-obj-$(CONFIG_CLK_SIFIVE_PRCI) += fu540-prci.o fu740-prci.o
+obj-$(CONFIG_CLK_SIFIVE_PRCI) +=  sifive-prci.o fu540-prci.o fu740-prci.o