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/power/supply/bq27xxx_battery_i2c.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/kernel/drivers/power/supply/bq27xxx_battery_i2c.c b/kernel/drivers/power/supply/bq27xxx_battery_i2c.c
index 3012eb1..0e32efb 100644
--- a/kernel/drivers/power/supply/bq27xxx_battery_i2c.c
+++ b/kernel/drivers/power/supply/bq27xxx_battery_i2c.c
@@ -179,7 +179,7 @@
i2c_set_clientdata(client, di);
if (client->irq) {
- ret = devm_request_threaded_irq(&client->dev, client->irq,
+ ret = request_threaded_irq(client->irq,
NULL, bq27xxx_battery_irq_handler_thread,
IRQF_ONESHOT,
di->name, di);
@@ -209,6 +209,7 @@
{
struct bq27xxx_device_info *di = i2c_get_clientdata(client);
+ free_irq(client->irq, di);
bq27xxx_battery_teardown(di);
mutex_lock(&battery_mutex);
--
Gitblit v1.6.2