mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
of: unittest: Fix overlay type in apply/revert check
[ Upstream commit6becf8f845] 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:d5e75500ca("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Chris
parent
fd70e4f3b8
commit
eeab400a9b
@@ -1573,7 +1573,7 @@ static int __init of_unittest_apply_revert_overlay_check(int overlay_nr,
|
||||
}
|
||||
|
||||
/* unittest device must be again in before state */
|
||||
if (of_unittest_device_exists(unittest_nr, PDEV_OVERLAY) != before) {
|
||||
if (of_unittest_device_exists(unittest_nr, ovtype) != before) {
|
||||
unittest(0, "%s with device @\"%s\" %s\n",
|
||||
overlay_name_from_nr(overlay_nr),
|
||||
unittest_path(unittest_nr, ovtype),
|
||||
|
||||
Reference in New Issue
Block a user