From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/media/i2c/max9286.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/drivers/media/i2c/max9286.c b/kernel/drivers/media/i2c/max9286.c
index b1e2476..62ce275 100644
--- a/kernel/drivers/media/i2c/max9286.c
+++ b/kernel/drivers/media/i2c/max9286.c
@@ -890,6 +890,7 @@
err_put_node:
fwnode_handle_put(ep);
err_async:
+ v4l2_ctrl_handler_free(&priv->ctrls);
max9286_v4l2_notifier_unregister(priv);
return ret;
@@ -898,6 +899,7 @@
static void max9286_v4l2_unregister(struct max9286_priv *priv)
{
fwnode_handle_put(priv->sd.fwnode);
+ v4l2_ctrl_handler_free(&priv->ctrls);
v4l2_async_unregister_subdev(&priv->sd);
max9286_v4l2_notifier_unregister(priv);
}
--
Gitblit v1.6.2