summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/mfd/ab8500-core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
index 0542381185b..d4d5400e184 100644
--- a/drivers/mfd/ab8500-core.c
+++ b/drivers/mfd/ab8500-core.c
@@ -1044,6 +1044,15 @@ int __devinit ab8500_init(struct ab8500 *ab8500, enum ab8500_version version)
ab8500->chip_id = value;
+ /*
+ * HACK: for AB8505 until drivers are updated,
+ * make it look like an AB8500 3.3.
+ */
+ if (ab8500->version == AB8500_VERSION_AB8505) {
+ ab8500->version = AB8500_VERSION_AB8500;
+ ab8500->chip_id = AB8500_CUT3P3;
+ }
+
dev_info(ab8500->dev, "detected chip, %s rev. %1x.%1x\n",
ab8500_version_str[ab8500->version],
ab8500->chip_id >> 4,