提交 85af74c4 编写于 作者: N Nicolas Saenz Julienne 提交者: Linus Walleij

gpio: raspberrypi-exp: decrease refcount on firmware dt node

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: a98d90e7 ("gpio: raspberrypi-exp: Driver for RPi3 GPIO expander via mailbox service")
Signed-off-by: NNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 3e42f200
...@@ -206,6 +206,7 @@ static int rpi_exp_gpio_probe(struct platform_device *pdev) ...@@ -206,6 +206,7 @@ static int rpi_exp_gpio_probe(struct platform_device *pdev)
} }
fw = rpi_firmware_get(fw_node); fw = rpi_firmware_get(fw_node);
of_node_put(fw_node);
if (!fw) if (!fw)
return -EPROBE_DEFER; return -EPROBE_DEFER;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册