]> Git Repo - linux.git/commit
net: bcmgenet: Return PTR_ERR() for fixed_phy_register()
authorRuan Jinjie <[email protected]>
Fri, 18 Aug 2023 07:07:06 +0000 (15:07 +0800)
committerDavid S. Miller <[email protected]>
Sun, 20 Aug 2023 14:13:27 +0000 (15:13 +0100)
commitacf50d1adbf440a01fc9cca16e80dde3da3eccab
tree3aff956878a32deba2f134ac52b3d8c0ea281a9f
parentd6499f0b7c7ce3d69f658331e78e520c7ebcb238
net: bcmgenet: Return PTR_ERR() for fixed_phy_register()

fixed_phy_register() returns -EPROBE_DEFER, -EINVAL and -EBUSY,
etc, in addition to -ENODEV. The Best practice is to return these
error codes with PTR_ERR().

Signed-off-by: Ruan Jinjie <[email protected]>
Acked-by: Doug Berger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/broadcom/genet/bcmmii.c
This page took 0.044365 seconds and 4 git commands to generate.