Skip to content

Commit 6becf8f

Browse files
geerturobherring
authored andcommitted
of: unittest: Fix overlay type in apply/revert check
The removal check in of_unittest_apply_revert_overlay_check() always uses the platform device overlay type, while it should use the actual overlay type, as passed as a parameter to the function. This has no impact on any current test, as all tests calling of_unittest_apply_revert_overlay_check() use the platform device overlay type. Fixes: d5e7550 ("of: unitest: Add I2C overlay unit tests.") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/ba0234c41ba808f10112094f88792beeb6dbaedf.1690533838.git.geert+renesas@glider.be Signed-off-by: Rob Herring <robh@kernel.org>
1 parent a9515ff commit 6becf8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/of/unittest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2213,7 +2213,7 @@ static int __init of_unittest_apply_revert_overlay_check(int overlay_nr,
22132213
of_unittest_untrack_overlay(save_ovcs_id);
22142214

22152215
/* unittest device must be again in before state */
2216-
if (of_unittest_device_exists(unittest_nr, PDEV_OVERLAY) != before) {
2216+
if (of_unittest_device_exists(unittest_nr, ovtype) != before) {
22172217
unittest(0, "%s with device @\"%s\" %s\n",
22182218
overlay_name_from_nr(overlay_nr),
22192219
unittest_path(unittest_nr, ovtype),

0 commit comments

Comments
 (0)