diff options
-rw-r--r-- | drivers/mfd/max8925-core.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mfd/max8925-core.c b/drivers/mfd/max8925-core.c index 825a7f06d9ba..6aa3a22ea435 100644 --- a/drivers/mfd/max8925-core.c +++ b/drivers/mfd/max8925-core.c | |||
@@ -18,12 +18,19 @@ | |||
18 | #include <linux/mfd/core.h> | 18 | #include <linux/mfd/core.h> |
19 | #include <linux/mfd/max8925.h> | 19 | #include <linux/mfd/max8925.h> |
20 | 20 | ||
21 | static struct resource io_parent = { | ||
22 | .start = 0, | ||
23 | .end = 0xffffffff, | ||
24 | .flags = IORESOURCE_IO, | ||
25 | }; | ||
26 | |||
21 | static struct resource backlight_resources[] = { | 27 | static struct resource backlight_resources[] = { |
22 | { | 28 | { |
23 | .name = "max8925-backlight", | 29 | .name = "max8925-backlight", |
24 | .start = MAX8925_WLED_MODE_CNTL, | 30 | .start = MAX8925_WLED_MODE_CNTL, |
25 | .end = MAX8925_WLED_CNTL, | 31 | .end = MAX8925_WLED_CNTL, |
26 | .flags = IORESOURCE_IO, | 32 | .flags = IORESOURCE_IO, |
33 | .parent = &io_parent, | ||
27 | }, | 34 | }, |
28 | }; | 35 | }; |
29 | 36 | ||
@@ -42,6 +49,7 @@ static struct resource touch_resources[] = { | |||
42 | .start = MAX8925_TSC_IRQ, | 49 | .start = MAX8925_TSC_IRQ, |
43 | .end = MAX8925_ADC_RES_END, | 50 | .end = MAX8925_ADC_RES_END, |
44 | .flags = IORESOURCE_IO, | 51 | .flags = IORESOURCE_IO, |
52 | .parent = &io_parent, | ||
45 | }, | 53 | }, |
46 | }; | 54 | }; |
47 | 55 | ||
@@ -60,6 +68,7 @@ static struct resource power_supply_resources[] = { | |||
60 | .start = MAX8925_CHG_IRQ1, | 68 | .start = MAX8925_CHG_IRQ1, |
61 | .end = MAX8925_CHG_IRQ1_MASK, | 69 | .end = MAX8925_CHG_IRQ1_MASK, |
62 | .flags = IORESOURCE_IO, | 70 | .flags = IORESOURCE_IO, |
71 | .parent = &io_parent, | ||
63 | }, | 72 | }, |
64 | }; | 73 | }; |
65 | 74 | ||
@@ -118,6 +127,7 @@ static struct mfd_cell onkey_devs[] = { | |||
118 | .start = MAX8925_##_start, \ | 127 | .start = MAX8925_##_start, \ |
119 | .end = MAX8925_##_end, \ | 128 | .end = MAX8925_##_end, \ |
120 | .flags = IORESOURCE_IO, \ | 129 | .flags = IORESOURCE_IO, \ |
130 | .parent = &io_parent, \ | ||
121 | } | 131 | } |
122 | 132 | ||
123 | static struct resource regulator_resources[] = { | 133 | static struct resource regulator_resources[] = { |