提交 b9442a01 编写于 作者: S Sean Anderson 提交者: Tom Rini

phy: marvell: Fix not calling dev_err with a device

No need for indirection here.
Signed-off-by: NSean Anderson <seanga2@gmail.com>
Tested-by: NPatrick Delaunay <patrick.delaunay@st.com>
上级 143d81dc
...@@ -98,14 +98,14 @@ static int comphy_probe(struct udevice *dev) ...@@ -98,14 +98,14 @@ static int comphy_probe(struct udevice *dev)
chip_cfg->comphy_lanes_count = fdtdec_get_int(blob, node, chip_cfg->comphy_lanes_count = fdtdec_get_int(blob, node,
"max-lanes", 0); "max-lanes", 0);
if (chip_cfg->comphy_lanes_count <= 0) { if (chip_cfg->comphy_lanes_count <= 0) {
dev_err(&dev->dev, "comphy max lanes is wrong\n"); dev_err(dev, "comphy max lanes is wrong\n");
return -EINVAL; return -EINVAL;
} }
chip_cfg->comphy_mux_bitcount = fdtdec_get_int(blob, node, chip_cfg->comphy_mux_bitcount = fdtdec_get_int(blob, node,
"mux-bitcount", 0); "mux-bitcount", 0);
if (chip_cfg->comphy_mux_bitcount <= 0) { if (chip_cfg->comphy_mux_bitcount <= 0) {
dev_err(&dev->dev, "comphy mux bit count is wrong\n"); dev_err(dev, "comphy mux bit count is wrong\n");
return -EINVAL; return -EINVAL;
} }
...@@ -124,7 +124,7 @@ static int comphy_probe(struct udevice *dev) ...@@ -124,7 +124,7 @@ static int comphy_probe(struct udevice *dev)
* compatible node is found * compatible node is found
*/ */
if (!chip_cfg->ptr_comphy_chip_init) { if (!chip_cfg->ptr_comphy_chip_init) {
dev_err(&dev->dev, "comphy: No compatible DT node found\n"); dev_err(dev, "comphy: No compatible DT node found\n");
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册