Skip to content

Commit 94e6fdd

Browse files
committed
clk: Allow kunit tests to run without OF_OVERLAY enabled
Some configurations want to enable CONFIG_KUNIT without enabling CONFIG_OF_OVERLAY. The kunit overlay code already skips if CONFIG_OF_OVERLAY isn't enabled, so these selects here aren't really doing anything besides making it easier to run the tests without them skipping. Remove the select and move the config setting to the drivers/clk/.kunitconfig file so that the clk tests can be run with or without CONFIG_OF_OVERLAY set to test either behavior. Fixes: 5776526 ("clk: Add KUnit tests for clk fixed rate basic type") Fixes: 274aff8 ("clk: Add KUnit tests for clks registered with struct clk_parent_data") Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e978201 commit 94e6fdd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/clk/.kunitconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CONFIG_KUNIT=y
22
CONFIG_OF=y
3+
CONFIG_OF_OVERLAY=y
34
CONFIG_COMMON_CLK=y
45
CONFIG_CLK_KUNIT_TEST=y
56
CONFIG_CLK_FIXED_RATE_KUNIT_TEST=y

drivers/clk/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ config CLK_KUNIT_TEST
517517
tristate "Basic Clock Framework Kunit Tests" if !KUNIT_ALL_TESTS
518518
depends on KUNIT
519519
default KUNIT_ALL_TESTS
520-
select OF_OVERLAY if OF
521520
select DTC
522521
help
523522
Kunit tests for the common clock framework.
@@ -526,7 +525,6 @@ config CLK_FIXED_RATE_KUNIT_TEST
526525
tristate "Basic fixed rate clk type KUnit test" if !KUNIT_ALL_TESTS
527526
depends on KUNIT
528527
default KUNIT_ALL_TESTS
529-
select OF_OVERLAY if OF
530528
select DTC
531529
help
532530
KUnit tests for the basic fixed rate clk type.

0 commit comments

Comments
 (0)