Revert "net: hisilicon: hns_dsaf_mac: fix OF node leak in hns_mac_get_info()"

This reverts commit 93ae0df7e7.
This commit is contained in:
Ksawlii 2024-11-24 00:23:10 +01:00
parent c8ed470e75
commit fae39e1046

View file

@ -933,7 +933,6 @@ static int hns_mac_get_info(struct hns_mac_cb *mac_cb)
mac_cb->cpld_ctrl = NULL;
} else {
syscon = syscon_node_to_regmap(cpld_args.np);
of_node_put(cpld_args.np);
if (IS_ERR_OR_NULL(syscon)) {
dev_dbg(mac_cb->dev, "no cpld-syscon found!\n");
mac_cb->cpld_ctrl = NULL;