• Niklas Cassel's avatar
    regulator: core: Drop lockdep annotation in drms_uA_update() · c407438f
    Niklas Cassel authored
    commit e5e21f70 ("regulator: core: Take lock before applying system
    load") took the regulator lock before calling drms_uA_update() in order
    to silence a lockdep warning during regulator_register().
    
    However, we are not supposed to need locks at this point as the regulator
    is in the process of being registered, so there should be no possibility
    of concurrent access.
    
    Instead, remove the unnecessary locking and simply drop the lockdep
    annotation, since it is no longer valid.
    
    Fixes: e5e21f70 ("regulator: core: Take lock before applying system load")
    Signed-off-by: default avatarNiklas Cassel <niklas.cassel@linaro.org>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    c407438f
core.c 142 KB