[PATCH] net: phy: nxp-c45-tja11xx: Fix incorrect usage of devm_kzalloc

Peng Fan peng.fan at oss.nxp.com
Wed Apr 29 04:30:22 CEST 2026


On Tue, Apr 28, 2026 at 04:37:33PM +0800, Ye Li wrote:
>devm_kzalloc needs to pass udevice for first parameter, this phy driver
>wrongly pass the priv in phy_device. And because the dev in phy_device
>is only valid after phy_connect, in probe phase this dev is NULL, so
>we can't use devm_kzalloc, replace it with kzalloc.
>
>Signed-off-by: Ye Li <ye.li at nxp.com>

Reviewed-by: Peng Fan <peng.fan at nxp.com>


More information about the U-Boot mailing list