Skip to content
Commit a9e8cbb1 authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by Xiaolei Wang
Browse files

net: pcs: lynx: change lynx_pcs_create() to return error-pointers

commit  16cd22819755c53b019d0abfa031b42bcf81e604 from
https://github.com/nxp-imx/linux-imx

 lf-6.1.y

Change lynx_pcs_create() to return an error-pointer on failure to
allocate memory, rather than returning NULL. This allows the removal
of the conversion in lynx_pcs_create_fwnode() and
lynx_pcs_create_mdiodev().

Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
(cherry picked from commit 05b606b8)
Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: default avatarXiaolei Wang <xiaolei.wang@windriver.com>
parent 8de49166
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment