> + reg_cnt = of_regulator_bulk_get_all(>dev, nchild,
> );
This allocates memory for consumers?
I don't see it being freed. I think you need to add to
phy_remove. Plus the error patch should also free it.
Andrew
--
You received this message because you are subscribed
On Tue, Nov 15, 2022 at 07:36:02AM +, Corentin Labbe wrote:
> Add handling of optional regulators for PHY.
> Regulators need to be enabled before PHY scanning, so MDIO bus
> initiate this task.
>
> Signed-off-by: Corentin Labbe
> ---
> drivers/net/mdio/fwnode_mdio.c | 31