mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
gpio: raspberrypi-exp: decrease refcount on firmware dt node
[ Upstream commit85af74c474
] We're getting a reference RPi's firmware node in order to be able to communicate with it's driver. We should decrease the reference count on the dt node after being done with it. Fixes:a98d90e7d5
("gpio: raspberrypi-exp: Driver for RPi3 GPIO expander via mailbox service") Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e1bb74ba45
commit
02ef84c0b2
1 changed files with 1 additions and 0 deletions
|
@ -206,6 +206,7 @@ static int rpi_exp_gpio_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
fw = rpi_firmware_get(fw_node);
|
||||
of_node_put(fw_node);
|
||||
if (!fw)
|
||||
return -EPROBE_DEFER;
|
||||
|
||||
|
|
Loading…
Reference in a new issue