[Meego-kernel] [PATCH] HACK mfd: twl4030-power: disable scripts
Ameya Palande
ameya.palande at nokia.com
Fri Oct 15 06:19:21 PDT 2010
Disable power scripts until we find a fix for N900 panel power on
problem.
This will act as a work around for BMC#8560
Signed-off-by: Ameya Palande <ameya.palande at nokia.com>
---
drivers/mfd/twl4030-power.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c
index c743b5f..84450c8 100644
--- a/drivers/mfd/twl4030-power.c
+++ b/drivers/mfd/twl4030-power.c
@@ -563,13 +563,20 @@ static void twl4030_poweroff(void)
void __init twl4030_power_init(struct twl4030_power_data *twl4030_scripts)
{
+/*
+ * We are not using power scripts since it causes issues while turning on
+ * panel on N900.
+ */
+#if 0
int err = 0;
int i;
struct twl4030_resconfig *resconfig;
u8 address = twl4030_start_script_address;
+#endif
pm_power_off = twl4030_poweroff;
+#if 0
err = twl_i2c_write_u8(TWL4030_MODULE_PM_MASTER, R_KEY_1,
R_PROTECT_KEY);
if (err)
@@ -615,4 +622,5 @@ resource:
if (err)
pr_err("TWL4030 failed to configure resource\n");
return;
+#endif
}
--
1.7.0.4
More information about the Meego-kernel
mailing list