diff options
author | Shen Yong <b00984@freescale.com> | 2010-03-25 17:45:20 +0800 |
---|---|---|
committer | Shen Yong <b00984@freescale.com> | 2010-03-26 10:09:33 +0800 |
commit | 25dbaf35e77de60b2853caf5bcd0252579147351 (patch) | |
tree | 187130725f1a6d2f64142ea4b757300639b89fab /drivers | |
parent | c68afebba8ce224668788a77dedde660abfad830 (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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mxc/pmic/core/pmic_core_i2c.c | 8 |
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); |