Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85af74c4 authored by Nicolas Saenz Julienne's avatar Nicolas Saenz Julienne Committed by Linus Walleij
Browse files

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: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 3e42f200
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;