]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio: mscc-miim: fix duplicate debugfs entry
authorMichael Walle <michael@walle.cc>
Sat, 12 Mar 2022 22:41:40 +0000 (23:41 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Mar 2022 05:04:15 +0000 (22:04 -0700)
commit74a9a41e7b41ea600a46a3c13e08540914c59865
tree39cf724412051a42d7f00c1931386444cfd2d091
parentaecdd74e69696c254c8d7739f35c3acfb8e51715
net: mdio: mscc-miim: 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:

[    3.833521] debugfs: Directory 'e200413c.mdio' with parent 'regmap' already present!

Give the second regmap a name to avoid this.

Fixes: ec4bd430fec2 ("net: mdio: mscc-miim: convert to a regmap implementation")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220312224140.4173930-1-michael@walle.cc
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-mscc-miim.c