aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShen Yong <b00984@freescale.com>2010-03-25 17:45:20 +0800
committerShen Yong <b00984@freescale.com>2010-03-26 10:09:33 +0800
commit25dbaf35e77de60b2853caf5bcd0252579147351 (patch)
tree187130725f1a6d2f64142ea4b757300639b89fab
parentc68afebba8ce224668788a77dedde660abfad830 (diff)
ENGR00121879 MX53 fix i2c error when system is going down
there is no battery on mx53 evk, which cause this issue. remove PMIC battery driver can fix this Signed-off-by: Shen Yong <b00984@freescale.com>
-rw-r--r--drivers/mxc/pmic/core/pmic_core_i2c.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mxc/pmic/core/pmic_core_i2c.c b/drivers/mxc/pmic/core/pmic_core_i2c.c
index ef32386f85a..d2f982efb2a 100644
--- a/drivers/mxc/pmic/core/pmic_core_i2c.c
+++ b/drivers/mxc/pmic/core/pmic_core_i2c.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -36,6 +36,7 @@
#include <linux/pmic_status.h>
#include <asm/uaccess.h>
+#include <mach/hardware.h>
#include "pmic.h"
@@ -94,7 +95,10 @@ static struct platform_device bleds_ldm = {
static void pmic_pdev_register(struct device *dev)
{
platform_device_register(&adc_ldm);
- platform_device_register(&battery_ldm);
+
+ if (!cpu_is_mx53())
+ platform_device_register(&battery_ldm);
+
platform_device_register(&rtc_ldm);
platform_device_register(&power_ldm);
platform_device_register(&light_ldm);