Commit 14ca726a authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by Andrew Lunn
Browse files

net: dsa: mv88e6xxx: return NULL when no PCS is present



Rather than returning an EOPNOTSUPP error pointer when the switch
has no support for PCS, return NULL to indicate that no PCS is
required.

Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
parent ecb595eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -868,7 +868,7 @@ mv88e6xxx_mac_select_pcs(struct phylink_config *config,
{
	struct dsa_port *dp = dsa_phylink_to_port(config);
	struct mv88e6xxx_chip *chip = dp->ds->priv;
	struct phylink_pcs *pcs = ERR_PTR(-EOPNOTSUPP);
	struct phylink_pcs *pcs = NULL;

	if (chip->info->ops->pcs_ops)
		pcs = chip->info->ops->pcs_ops->pcs_select(chip, dp->index,