Hey,

if the bq2000 is not compiled in we will get link errors. The attached patch 
is fixing that. I should have gotten the config key correct...

z.
From 79850664c8b68bb56568e45d5aac308eb60f4673 Mon Sep 17 00:00:00 2001
From: Holger Freyther <[EMAIL PROTECTED]>
Date: Sun, 27 Jul 2008 18:44:51 +0200
Subject: [PATCH] [bq2000] Be able to compile the kernel without bq2000 battery support

Signed-off-by: Holger Freyther <[EMAIL PROTECTED]>
---
 arch/arm/mach-s3c2440/mach-gta02.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 1fcd3fd..7ea3c5e 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -520,7 +520,9 @@ static int pmu_callback(struct device *dev, unsigned int feature,
 		break;
 	}
 
+#ifdef CONFIG_BATTERY_BQ27000_HDQ
 	bq27000_charging_state_change(&bq27000_battery_device);
+#endif
 	return 0;
 }
 
-- 
1.5.2.3

Reply via email to