Skip to content
  • Lee Jones's avatar
    mfd: mfd-core: Ensure disabled devices are ignored without error · 22380b65
    Lee Jones authored
    
    
    Commit e49aa9a9bd22 ("mfd: core: Make a best effort attempt to match
    devices with the correct of_nodes") changed the semantics for disabled
    devices in mfd_add_device().  Instead of silently ignoring a disabled
    child device, an error was returned.  On receipt of the error
    mfd_add_devices() the precedes to remove *all* child devices and
    returns an all-failed error to the caller, which will inevitably fail
    the parent device as well.
    
    This patch reverts back to the old semantics and ignores child devices
    which are disabled in Device Tree.
    
    Fixes: e49aa9a9bd22 ("mfd: core: Make a best effort attempt to match devices with the correct of_nodes")
    Reported-by: default avatarIcenowy Zheng <icenowy@aosc.io>
    Tested-by: default avatarIcenowy Zheng <icenowy@aosc.io>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    22380b65