]> www.infradead.org Git - users/dwmw2/linux.git/commit
clk: Allow kunit tests to run without OF_OVERLAY enabled
authorStephen Boyd <sboyd@kernel.org>
Wed, 16 Oct 2024 21:27:37 +0000 (14:27 -0700)
committerStephen Boyd <sboyd@kernel.org>
Tue, 22 Oct 2024 21:09:20 +0000 (14:09 -0700)
commit94e6fdd028a12ff2abe7d915f8b6bbdb923cc04d
treefc80d25600a5a0dda33347a71cc203de84e2addb
parente978201bc530b5566dff5c531dc17a20e0158803
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: 5776526beb95 ("clk: Add KUnit tests for clk fixed rate basic type")
Fixes: 274aff8711b2 ("clk: Add KUnit tests for clks registered with struct clk_parent_data")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20241016212738.897691-1-sboyd@kernel.org
drivers/clk/.kunitconfig
drivers/clk/Kconfig