diff --git a/drivers/phy/rockchip/phy-rockchip-inno-combphy.c b/drivers/phy/rockchip/phy-rockchip-inno-combphy.c index 20180aecb6d5..c4d2a1e48720 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-combphy.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-combphy.c @@ -508,7 +508,7 @@ static struct phy *rockchip_combphy_xlate(struct device *dev, if (priv->phy_type != PHY_NONE && priv->phy_type != args->args[0]) { dev_err(dev, "type select %d overwriting phy type %d\n", args->args[0], priv->phy_type); - return ERR_PTR(-EINVAL); + return ERR_PTR(-ENODEV); } priv->phy_type = args->args[0];