From: Miquel Raynal Date: Wed, 31 Jul 2019 12:21:09 +0000 (+0200) Subject: phy: mvebu-cp110-comphy: Explicitly initialize the lane submode X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d4eda9d847ac3c32012bd28ac15ed68802c14b63;p=linux.git phy: mvebu-cp110-comphy: Explicitly initialize the lane submode Explicitly set the lane submode (enum) to a known invalid value. Signed-off-by: Miquel Raynal Signed-off-by: Kishon Vijay Abraham I --- diff --git a/drivers/phy/marvell/phy-mvebu-cp110-comphy.c b/drivers/phy/marvell/phy-mvebu-cp110-comphy.c index 5a643e4d9b8e6..ffadb75c78e91 100644 --- a/drivers/phy/marvell/phy-mvebu-cp110-comphy.c +++ b/drivers/phy/marvell/phy-mvebu-cp110-comphy.c @@ -715,6 +715,7 @@ static int mvebu_comphy_probe(struct platform_device *pdev) lane->priv = priv; lane->mode = PHY_MODE_INVALID; + lane->submode = PHY_INTERFACE_MODE_NA; lane->id = val; lane->port = -1; phy_set_drvdata(phy, lane);