Thread (20 messages) 20 messages, 4 authors, 2020-10-30

[PATCH v2 07/10] input: raspberrypi-ts: Release firmware handle when not needed

From: Nicolas Saenz Julienne <hidden>
Date: 2020-10-22 15:59:25
Also in: linux-clk, linux-devicetree, linux-gpio, linux-input, linux-pwm, lkml
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

After passing the DMA buffer address through the firmware interface,
release the firmware handle, we won't need it anymore.

Signed-off-by: Nicolas Saenz Julienne <redacted>
---
 drivers/input/touchscreen/raspberrypi-ts.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/input/touchscreen/raspberrypi-ts.c b/drivers/input/touchscreen/raspberrypi-ts.c
index ef6aaed217cf..29c878a00018 100644
--- a/drivers/input/touchscreen/raspberrypi-ts.c
+++ b/drivers/input/touchscreen/raspberrypi-ts.c
@@ -165,6 +165,7 @@ static int rpi_ts_probe(struct platform_device *pdev)
 		dev_warn(dev, "Failed to set touchbuf, %d\n", error);
 		return error;
 	}
+	rpi_firmware_put(fw);
 
 	input = devm_input_allocate_device(dev);
 	if (!input) {
-- 
2.28.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help