reset: Avoid a warning in devm_regmap_init()
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:22 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:42:05 +0000 (18:42 -0400)
commit37e79ee0e8f93674a6247cf5c973920f18fd3578
tree759600927649b13a084bd54b036b832d3b95a040
parentca4c24509c60cfc95563d25b482cfed3789aca59
reset: Avoid a warning in devm_regmap_init()

The devres_alloc() function is intended to avoid the need for freeing
memory, although in practice it may not be enabled, thus leading to a true
leak.

Nevertheless this is intended. Add a comment.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 312951)
drivers/core/regmap.c