Hi Simon,

On Mon, 19 Jan 2015 20:12:36 -0700
Simon Glass <s...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to