mediatek: mt76: eeprom: fix missing of_node_put() in mt76_find_power_limits_node()
authorLiang He <windhl@126.com>
Mon, 4 Jul 2022 08:34:21 +0000 (16:34 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:03 +0000 (13:40 +0200)
commit3bd53ea02d77917c2314ec7be9e2d05be22f87d3
treec1bf6f9994ed69ee9d2fff8868c9046ddeb24d64
parent0a14c1d0113f121151edf34333cdf212dd209190
mediatek: mt76: eeprom: fix missing of_node_put() in mt76_find_power_limits_node()

We should use of_node_put() for the reference 'np' returned by
of_get_child_by_name() which will increase the refcount.

Fixes: 22b980badc0f ("mt76: add functions for parsing rate power limits from DT")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/eeprom.c