]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: ocelot: fix duplicate debugfs entry
authorMichael Walle <michael@walle.cc>
Wed, 16 Feb 2022 12:27:27 +0000 (13:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Mar 2022 00:06:20 +0000 (01:06 +0100)
commit2f03311ae5af17bbc21834b4abe63a98f994f0c6
treea5a3f25df6fdd33192f9749b0d7b1fbb550a2d4a
parentbfbde8b93f4d57896a7accebe7525fd2e0be7a1b
pinctrl: ocelot: fix duplicate debugfs entry

This driver can have up to two regmaps. If the second one is registered
its debugfs entry will have the same name as the first one and the
following error will be printed:

[    2.242568] debugfs: Directory 'e2004064.pinctrl' with parent 'regmap' already present!

Give the second regmap a name to avoid this.

Fixes: 593f1f361392 ("pinctrl: ocelot: convert pinctrl to regmap")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Colin Foster <colin.foster@in-advantage.com>
Link: https://lore.kernel.org/r/20220216122727.1005041-1-michael@walle.cc
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ocelot.c