From: Florian Fainelli <[email protected]>
Date: Wed, 17 Jun 2020 20:42:44 -0700
> of_find_node_by_name() will do an of_node_put() on the "from" argument.
> With CONFIG_OF_DYNAMIC enabled which checks for device_node reference
> counts, we would be getting a warning like this:
...
> Fix this by adding a of_node_get() to increment the reference count
> prior to the call.
>
> Fixes: afa3b592953b ("net: dsa: bcm_sf2: Ensure correct sub-node is parsed")
> Signed-off-by: Florian Fainelli <[email protected]>
Applied and queued up for v5.7 -stable, thanks.