Skip to content

Commit 336157b

Browse files
Uwe Kleine-Königrobherring
authored andcommitted
of/platform: Inform about created platform devices using pr_debug()
For most nodes with a compatible property a platform device is created. For some an amba device is created instead. For the latter of_amba_device_create() emits a message at debug level about the node the device is created from. Add a similar message to of_platform_device_create_pdata() to inform about the whole list of created devices. This also gives the right context for the following messages that inform about created child devices. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20240222153119.2026363-2-u.kleine-koenig@pengutronix.de Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 1447c13 commit 336157b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/of/platform.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ static struct platform_device *of_platform_device_create_pdata(
166166
{
167167
struct platform_device *dev;
168168

169+
pr_debug("create platform device: %pOF\n", np);
170+
169171
if (!of_device_is_available(np) ||
170172
of_node_test_and_set_flag(np, OF_POPULATED))
171173
return NULL;

0 commit comments

Comments
 (0)