• Lars-Peter Clausen's avatar
    regmap: Fix regcache debugfs initialization · 5e0cbe78
    Lars-Peter Clausen authored
    Commit 6cfec04b ("regmap: Separate regmap dev initialization") moved the
    regmap debugfs initialization after regcache initialization. This means
    that the regmap debugfs directory is not created yet when the cache
    initialization runs and so any debugfs files registered by the regcache are
    created in the debugfs root directory rather than the debugfs directory of
    the regmap instance. Fix this by adding a separate callback for the
    regcache debugfs initialization which will be called after the parent
    debugfs entry has been created.
    
    Fixes: 6cfec04b (regmap: Separate regmap dev initialization)
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    Cc: stable@vger.kernel.org
    5e0cbe78
regmap-debugfs.c 13.9 KB