Re: [PATCH] of: Add stub for of_get_next_parent()

From: Arnd Bergmann
Date: Wed Apr 27 2016 - 07:14:01 EST


On Wednesday 27 April 2016 14:11:40 Heikki Krogerus wrote:
> Fixes a compiler error:
>
> drivers/phy/phy-core.c: In function â__of_phy_provider_registerâ:
> drivers/phy/phy-core.c:848:13: error: implicit declaration of function
> âof_get_next_parentâ [-Werror=implicit-function-declaration]
> parent = of_get_next_parent(parent);
> ^
>
> Fixes: 2f7600bc981c ("phy: core: Allow children node to be overridden")
> Signed-off-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>

Yes, this works. I have submitted an alternative patch to fix the
build error, changing the PHY core to not use any of the OF interfaces
if CONFIG_OF is disabled.

We can also have both.

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>