diff options
| author | Ye Li <[email protected]> | 2026-04-28 16:37:33 +0800 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2026-05-15 17:31:39 -0300 |
| commit | 39f52b7c29e64233dae21c5aebd559b946665c77 (patch) | |
| tree | ebf97bdeced45e6fc79721517c66fa2c6be05133 /scripts/const_structs.checkpatch | |
| parent | f745c1ab4eaaf16fe8b6df7c0a37c3068ad7331b (diff) | |
net: phy: nxp-c45-tja11xx: Fix incorrect usage of devm_kzalloc
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 <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
