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/ab8500_bmdata.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/drivers/power/supply/ab8500_bmdata.c b/kernel/drivers/power/supply/ab8500_bmdata.c
index 7b2b699..f6a6697 100644
--- a/kernel/drivers/power/supply/ab8500_bmdata.c
+++ b/kernel/drivers/power/supply/ab8500_bmdata.c
@@ -508,6 +508,7 @@
btech = of_get_property(battery_node, "stericsson,battery-type", NULL);
if (!btech) {
dev_warn(dev, "missing property battery-name/type\n");
+ of_node_put(battery_node);
return -EINVAL;
}
--
Gitblit v1.6.2