Skip to content
  • Grant Likely's avatar
    of/selftest: Fix testing when /aliases is missing · 788ec2fc
    Grant Likely authored
    
    
    The /aliases node isn't always present in the device tree, but the
    unittest code assumes that /aliases is there. Add a check when inserting
    the testcase data to see if of_aliases needs to be updated, and undo the
    settings when the nodes are removed.
    
    Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
    Cc: Rob Herring <robh+dt@kernel.org>
    Cc: Gaurav Minocha <gaurav.minocha.os@gmail.com>
    Cc: <stable@vger.kernel.org>
    788ec2fc