Re: [PATCH 2/3] net: dsa: lantiq_gswip: fix OF child-node lookups

From: Andrew Lunn
Date: Wed Jan 16 2019 - 10:02:27 EST


On Wed, Jan 16, 2019 at 11:23:34AM +0100, Johan Hovold wrote:
> Use the new of_get_compatible_child() helper to look up child nodes to
> avoid ever matching non-child nodes elsewhere in the tree.
>
> Also fix up the related struct device_node leaks.
>
> Fixes: 14fceff4771e ("net: dsa: Add Lantiq / Intel DSA driver for vrx200")
> Cc: stable <stable@xxxxxxxxxxxxxxx> # 4.20
> Cc: Hauke Mehrtens <hauke@xxxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew