aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-04 00:07:25 +0100
committerLars-Peter Clausen <lars@metafoo.de>2010-06-23 15:30:05 +0200
commit1e47708c768b5d7ff2f214ac7467a28201ba254c (patch)
tree02a243dfac3e0cffd62093ece88bd634572d151a
parentd68329250120b2c92a29fc71805cd7ce043108b0 (diff)
Fix crash when reading Glamo registers via sysfs
glamo-core didn't ioremap() some areas, so don't try to read them. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
-rw-r--r--drivers/mfd/glamo-core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/glamo-core.c b/drivers/mfd/glamo-core.c
index 4af7c54eac1..135856af1ee 100644
--- a/drivers/mfd/glamo-core.c
+++ b/drivers/mfd/glamo-core.c
@@ -90,14 +90,14 @@ static const struct reg_range reg_range[] = {
/* { 0x0500, 0x300, "ISP", 0 }, */
/* { 0x0800, 0x400, "JPEG", 0 }, */
/* { 0x0c00, 0xcc, "MPEG", 0 }, */
- { 0x1100, 0xb2, "LCD 1", 1 },
- { 0x1200, 0x64, "LCD 2", 1 },
- { 0x1400, 0x42, "MMC", 1 },
+ { 0x1100, 0xb2, "LCD 1", 0 },
+ { 0x1200, 0x64, "LCD 2", 0 },
+ { 0x1400, 0x42, "MMC", 0 },
/* { 0x1500, 0x080, "MPU 0", 0 },
{ 0x1580, 0x080, "MPU 1", 0 },
{ 0x1600, 0x080, "Cmd Queue", 0 },
{ 0x1680, 0x080, "RISC CPU", 0 },*/
- { 0x1700, 0x400, "2D Unit", 1 },
+ { 0x1700, 0x400, "2D Unit", 0 },
/* { 0x1b00, 0x900, "3D Unit", 0 }, */
};