[U-Boot] [RFC PATCH 12/12] devres: add debug command to dump devres

Masahiro Yamada yamada.masahiro at socionext.com
Wed Jul 8 09:37:46 CEST 2015


2015-07-08 13:29 GMT+09:00 Masahiro Yamada <yamada.masahiro at socionext.com>:

> diff --git a/drivers/core/devres.c b/drivers/core/devres.c
> index f24bcac..71f2f67 100644
> --- a/drivers/core/devres.c
> +++ b/drivers/core/devres.c
> @@ -13,6 +13,7 @@
>  #include <linux/kernel.h>
>  #include <linux/list.h>
>  #include <dm/device.h>
> +#include <dm/root.h>
>
>  struct devres {
>         struct list_head                entry;
> @@ -136,6 +137,42 @@ void devres_release_all(struct udevice *dev)
>         release_nodes(dev, &dev->devres_head, false);
>  }
>
> +#ifdef CONFIG_CMD_DEVRES
> +void dump_resources(struct udevice *dev, int depth)
> +{


I forgot to add "static".

I will fix it in v2 if the basic idea of this series is OK.



-- 
Best Regards
Masahiro Yamada


More information about the U-Boot mailing list