summaryrefslogtreecommitdiff
path: root/drivers/mxc
diff options
context:
space:
mode:
authorShen Yong <b00984@freescale.com>2010-03-25 17:45:20 +0800
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-05-25 11:20:17 +0200
commit85f08efb561b5d3de7aa95e0367d68baed38ef51 (patch)
treec96549574a5f625246891ec37d0ff4afe7236100 /drivers/mxc
parente482740f547623eb71fd031e4619a341d47fa33c (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> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'drivers/mxc')
-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 ef32386f85ad..d2f982efb2a1 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);