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/maxim4c/remote_max96715.c | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
diff --git a/kernel/drivers/media/i2c/maxim4c/remote_max96715.c b/kernel/drivers/media/i2c/maxim4c/remote_max96715.c
index 3f2689a..11aa308 100644
--- a/kernel/drivers/media/i2c/maxim4c/remote_max96715.c
+++ b/kernel/drivers/media/i2c/maxim4c/remote_max96715.c
@@ -190,7 +190,6 @@
{
struct device *dev = max96715->dev;
struct i2c_client *client = max96715->client;
- struct maxim4c *maxim4c = max96715->local;
int ret = 0;
ret = maxim4c_remote_i2c_addr_select(max96715, MAXIM4C_I2C_SER_DEF);
@@ -206,16 +205,9 @@
return ret;
#if MAX96715_MODE_SWITCH
- if (maxim4c->hot_plug_irq > 0)
- disable_irq(maxim4c->hot_plug_irq);
-
ret = max96715_link_mode_select(max96715, LINK_MODE_CONFIG);
- if (ret) {
- if (maxim4c->hot_plug_irq > 0)
- enable_irq(maxim4c->hot_plug_irq);
-
+ if (ret)
return ret;
- }
#endif
ret = maxim4c_i2c_run_init_seq(client,
@@ -225,16 +217,11 @@
dev_err(dev, "remote id = %d init sequence error\n",
max96715->remote_id);
- if (maxim4c->hot_plug_irq > 0)
- enable_irq(maxim4c->hot_plug_irq);
-
return ret;
}
#if MAX96715_MODE_SWITCH
ret = max96715_link_mode_select(max96715, LINK_MODE_VIDEO);
- if (maxim4c->hot_plug_irq > 0)
- enable_irq(maxim4c->hot_plug_irq);
if (ret)
return ret;
#endif
@@ -388,7 +375,7 @@
.probe = max96715_probe,
.remove = max96715_remove,
.driver = {
- .name = "max96715",
+ .name = "maxim4c-max96715",
.of_match_table = max96715_of_table,
},
};
--
Gitblit v1.6.2