linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: mfd-core: Change "Failed to locate of_node" warning to debug
@ 2021-06-16  8:19 Yunus Bas
  2021-06-16  9:03 ` Lee Jones
  0 siblings, 1 reply; 21+ messages in thread
From: Yunus Bas @ 2021-06-16  8:19 UTC (permalink / raw)
  To: lee.jones, linux-kernel

The MFD-core iterates through all subdevices of the corresponding
MFD-device and checks, if the devicetree subnode has a fitting compatible.
When nothing is found, a warning is thrown. This can be the case, when it
is the intention to not use the MFD-device to it's full content.
Therefore, change the warning to a debug print instead, to also avoid
irritations.

Signed-off-by: Yunus Bas <y.bas@phytec.de>
---
 drivers/mfd/mfd-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c
index 6f02b8022c6d..e34c97088943 100644
--- a/drivers/mfd/mfd-core.c
+++ b/drivers/mfd/mfd-core.c
@@ -213,7 +213,7 @@ static int mfd_add_device(struct device *parent, int id,
 		}
 
 		if (!pdev->dev.of_node)
-			pr_warn("%s: Failed to locate of_node [id: %d]\n",
+			pr_debug("%s: Failed to locate of_node [id: %d]\n",
 				cell->name, platform_id);
 	}
 
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-07-05  8:06 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16  8:19 [PATCH] mfd: mfd-core: Change "Failed to locate of_node" warning to debug Yunus Bas
2021-06-16  9:03 ` Lee Jones
2021-06-17  7:46   ` Yunus Bas
2021-06-17  8:27     ` Lee Jones
2021-06-29  7:25       ` Yunus Bas
2021-06-29  9:07         ` Lee Jones
2021-06-29  9:41           ` Yunus Bas
2021-06-29 13:39         ` Lee Jones
2021-06-30  7:27           ` Yunus Bas
2021-06-30  8:42             ` Lee Jones
2021-06-30 10:55             ` Daniel Thompson
2021-06-30 12:33               ` Lee Jones
2021-07-01 15:34                 ` Yunus Bas
2021-07-01 16:45                   ` Lee Jones
2021-07-02 12:59                   ` Daniel Thompson
2021-07-02 18:36                     ` Lee Jones
2021-07-02 19:10                       ` Daniel Thompson
2021-07-05  7:24                         ` Yunus Bas
2021-07-05  7:31                           ` Lee Jones
2021-07-05  7:50                             ` Yunus Bas
2021-07-05  8:05                               ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).