Revert "net: hisilicon: hip04: fix OF node leak in probe()"

This reverts commit 894592fa8b.
This commit is contained in:
Ksawlii 2024-11-24 00:23:10 +01:00
parent fae39e1046
commit 312c6c6837

View file

@ -943,7 +943,6 @@ static int hip04_mac_probe(struct platform_device *pdev)
priv->tx_coalesce_timer.function = tx_done; priv->tx_coalesce_timer.function = tx_done;
priv->map = syscon_node_to_regmap(arg.np); priv->map = syscon_node_to_regmap(arg.np);
of_node_put(arg.np);
if (IS_ERR(priv->map)) { if (IS_ERR(priv->map)) {
dev_warn(d, "no syscon hisilicon,hip04-ppe\n"); dev_warn(d, "no syscon hisilicon,hip04-ppe\n");
ret = PTR_ERR(priv->map); ret = PTR_ERR(priv->map);