diff options
author | Yang Xiwen <forbidden405@outlook.com> | 2023-12-16 04:21:11 +0800 |
---|---|---|
committer | Sean Anderson <seanga2@gmail.com> | 2023-12-15 15:30:12 -0500 |
commit | 97d65b32d76cb3b8297cd8aa2c1f0caab5ab6c57 (patch) | |
tree | 99d489ac9d54d61a895188157cea3a6a31297ef3 | |
parent | d30618243990457d219ab81955c2738580d26cd2 (diff) | |
download | u-boot-97d65b32d76cb3b8297cd8aa2c1f0caab5ab6c57.zip u-boot-97d65b32d76cb3b8297cd8aa2c1f0caab5ab6c57.tar.gz u-boot-97d65b32d76cb3b8297cd8aa2c1f0caab5ab6c57.tar.bz2 |
test: dm: clk_ccf: fix building error
Fix unused variable error produced by building tests
Fixes: d3061824 (test: dm: clk_ccf: test ccf_clk_ops)
Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20231216-b4-fix_build-v1-1-b8e79c94744f@outlook.com
-rw-r--r-- | test/dm/clk_ccf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dm/clk_ccf.c b/test/dm/clk_ccf.c index 9948187..61dad8d 100644 --- a/test/dm/clk_ccf.c +++ b/test/dm/clk_ccf.c @@ -18,11 +18,12 @@ /* Tests for Common Clock Framework driver */ static int dm_test_clk_ccf(struct unit_test_state *uts) { - struct clk *clk, *pclk, clk_ccf; + struct clk *clk, *pclk; struct udevice *dev, *test_dev; long long rate; int ret; #if CONFIG_IS_ENABLED(CLK_CCF) + struct clk clk_ccf; const char *clkname; int clkid, i; #endif |