From 9e713de80a0752fce91ec22a735dd8ee349027ce Mon Sep 17 00:00:00 2001 From: "shengyang.chen" Date: Thu, 7 Jul 2022 20:19:52 +0800 Subject: [PATCH] riscv:linux:vout:m31 fix 'NULL device' printing problem in console Signed-off-by:shengyang.chen --- drivers/phy/m31/phy-m31-dphy-tx0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/m31/phy-m31-dphy-tx0.c b/drivers/phy/m31/phy-m31-dphy-tx0.c index 2dc2e01..76bd1fa 100644 --- a/drivers/phy/m31/phy-m31-dphy-tx0.c +++ b/drivers/phy/m31/phy-m31-dphy-tx0.c @@ -728,6 +728,7 @@ static int sf_dphy_probe(struct platform_device *pdev) } phy_set_drvdata(dphy->phy, dphy); + dphy->dev = &pdev->dev; // this power switch control bit was added in ECO, check ECO item "aon psw_en" for detail dev_info(dphy->dev, "control ECO\n"); dphy->aonsys = ioremap(0x17010000, 0x10000); -- 2.7.4