[U-Boot] [PATCH v2 07/26] dm: core: Allow parents to have platform data for their children
Masahiro Yamada
yamada.m at jp.panasonic.com
Thu Jan 22 08:45:15 CET 2015
Hi Simon,
On Mon, 19 Jan 2015 20:12:36 -0700
Simon Glass <sjg at chromium.org> wrote:
> diff --git a/drivers/core/device.c b/drivers/core/device.c
> index 23ee771..0682e2e 100644
> --- a/drivers/core/device.c
> +++ b/drivers/core/device.c
> @@ -80,6 +80,18 @@ int device_bind(struct udevice *parent, struct driver *drv, const char *name,
> goto fail_alloc1;
> }
> }
> + if (parent && !dev->parent_platdata) {
Why should we check whether dev->parent_platdata is NULL?
I think it is always NULL here
because "dev" is just calloc'ed above.
Best Regards
Masahiro Yamada
More information about the U-Boot
mailing list