aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max8925-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/max8925-core.c')
-rw-r--r--drivers/mfd/max8925-core.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/drivers/mfd/max8925-core.c b/drivers/mfd/max8925-core.c
index 9f54c04912f2..e32466e865b9 100644
--- a/drivers/mfd/max8925-core.c
+++ b/drivers/mfd/max8925-core.c
@@ -19,12 +19,12 @@
19#include <linux/mfd/core.h> 19#include <linux/mfd/core.h>
20#include <linux/mfd/max8925.h> 20#include <linux/mfd/max8925.h>
21 21
22static struct resource bk_resources[] __devinitdata = { 22static struct resource bk_resources[] = {
23 { 0x84, 0x84, "mode control", IORESOURCE_REG, }, 23 { 0x84, 0x84, "mode control", IORESOURCE_REG, },
24 { 0x85, 0x85, "control", IORESOURCE_REG, }, 24 { 0x85, 0x85, "control", IORESOURCE_REG, },
25}; 25};
26 26
27static struct mfd_cell bk_devs[] __devinitdata = { 27static struct mfd_cell bk_devs[] = {
28 { 28 {
29 .name = "max8925-backlight", 29 .name = "max8925-backlight",
30 .num_resources = ARRAY_SIZE(bk_resources), 30 .num_resources = ARRAY_SIZE(bk_resources),
@@ -110,99 +110,99 @@ static struct mfd_cell onkey_devs[] = {
110 }, 110 },
111}; 111};
112 112
113static struct resource sd1_resources[] __devinitdata = { 113static struct resource sd1_resources[] = {
114 {0x06, 0x06, "sdv", IORESOURCE_REG, }, 114 {0x06, 0x06, "sdv", IORESOURCE_REG, },
115}; 115};
116 116
117static struct resource sd2_resources[] __devinitdata = { 117static struct resource sd2_resources[] = {
118 {0x09, 0x09, "sdv", IORESOURCE_REG, }, 118 {0x09, 0x09, "sdv", IORESOURCE_REG, },
119}; 119};
120 120
121static struct resource sd3_resources[] __devinitdata = { 121static struct resource sd3_resources[] = {
122 {0x0c, 0x0c, "sdv", IORESOURCE_REG, }, 122 {0x0c, 0x0c, "sdv", IORESOURCE_REG, },
123}; 123};
124 124
125static struct resource ldo1_resources[] __devinitdata = { 125static struct resource ldo1_resources[] = {
126 {0x1a, 0x1a, "ldov", IORESOURCE_REG, }, 126 {0x1a, 0x1a, "ldov", IORESOURCE_REG, },
127}; 127};
128 128
129static struct resource ldo2_resources[] __devinitdata = { 129static struct resource ldo2_resources[] = {
130 {0x1e, 0x1e, "ldov", IORESOURCE_REG, }, 130 {0x1e, 0x1e, "ldov", IORESOURCE_REG, },
131}; 131};
132 132
133static struct resource ldo3_resources[] __devinitdata = { 133static struct resource ldo3_resources[] = {
134 {0x22, 0x22, "ldov", IORESOURCE_REG, }, 134 {0x22, 0x22, "ldov", IORESOURCE_REG, },
135}; 135};
136 136
137static struct resource ldo4_resources[] __devinitdata = { 137static struct resource ldo4_resources[] = {
138 {0x26, 0x26, "ldov", IORESOURCE_REG, }, 138 {0x26, 0x26, "ldov", IORESOURCE_REG, },
139}; 139};
140 140
141static struct resource ldo5_resources[] __devinitdata = { 141static struct resource ldo5_resources[] = {
142 {0x2a, 0x2a, "ldov", IORESOURCE_REG, }, 142 {0x2a, 0x2a, "ldov", IORESOURCE_REG, },
143}; 143};
144 144
145static struct resource ldo6_resources[] __devinitdata = { 145static struct resource ldo6_resources[] = {
146 {0x2e, 0x2e, "ldov", IORESOURCE_REG, }, 146 {0x2e, 0x2e, "ldov", IORESOURCE_REG, },
147}; 147};
148 148
149static struct resource ldo7_resources[] __devinitdata = { 149static struct resource ldo7_resources[] = {
150 {0x32, 0x32, "ldov", IORESOURCE_REG, }, 150 {0x32, 0x32, "ldov", IORESOURCE_REG, },
151}; 151};
152 152
153static struct resource ldo8_resources[] __devinitdata = { 153static struct resource ldo8_resources[] = {
154 {0x36, 0x36, "ldov", IORESOURCE_REG, }, 154 {0x36, 0x36, "ldov", IORESOURCE_REG, },
155}; 155};
156 156
157static struct resource ldo9_resources[] __devinitdata = { 157static struct resource ldo9_resources[] = {
158 {0x3a, 0x3a, "ldov", IORESOURCE_REG, }, 158 {0x3a, 0x3a, "ldov", IORESOURCE_REG, },
159}; 159};
160 160
161static struct resource ldo10_resources[] __devinitdata = { 161static struct resource ldo10_resources[] = {
162 {0x3e, 0x3e, "ldov", IORESOURCE_REG, }, 162 {0x3e, 0x3e, "ldov", IORESOURCE_REG, },
163}; 163};
164 164
165static struct resource ldo11_resources[] __devinitdata = { 165static struct resource ldo11_resources[] = {
166 {0x42, 0x42, "ldov", IORESOURCE_REG, }, 166 {0x42, 0x42, "ldov", IORESOURCE_REG, },
167}; 167};
168 168
169static struct resource ldo12_resources[] __devinitdata = { 169static struct resource ldo12_resources[] = {
170 {0x46, 0x46, "ldov", IORESOURCE_REG, }, 170 {0x46, 0x46, "ldov", IORESOURCE_REG, },
171}; 171};
172 172
173static struct resource ldo13_resources[] __devinitdata = { 173static struct resource ldo13_resources[] = {
174 {0x4a, 0x4a, "ldov", IORESOURCE_REG, }, 174 {0x4a, 0x4a, "ldov", IORESOURCE_REG, },
175}; 175};
176 176
177static struct resource ldo14_resources[] __devinitdata = { 177static struct resource ldo14_resources[] = {
178 {0x4e, 0x4e, "ldov", IORESOURCE_REG, }, 178 {0x4e, 0x4e, "ldov", IORESOURCE_REG, },
179}; 179};
180 180
181static struct resource ldo15_resources[] __devinitdata = { 181static struct resource ldo15_resources[] = {
182 {0x52, 0x52, "ldov", IORESOURCE_REG, }, 182 {0x52, 0x52, "ldov", IORESOURCE_REG, },
183}; 183};
184 184
185static struct resource ldo16_resources[] __devinitdata = { 185static struct resource ldo16_resources[] = {
186 {0x12, 0x12, "ldov", IORESOURCE_REG, }, 186 {0x12, 0x12, "ldov", IORESOURCE_REG, },
187}; 187};
188 188
189static struct resource ldo17_resources[] __devinitdata = { 189static struct resource ldo17_resources[] = {
190 {0x16, 0x16, "ldov", IORESOURCE_REG, }, 190 {0x16, 0x16, "ldov", IORESOURCE_REG, },
191}; 191};
192 192
193static struct resource ldo18_resources[] __devinitdata = { 193static struct resource ldo18_resources[] = {
194 {0x74, 0x74, "ldov", IORESOURCE_REG, }, 194 {0x74, 0x74, "ldov", IORESOURCE_REG, },
195}; 195};
196 196
197static struct resource ldo19_resources[] __devinitdata = { 197static struct resource ldo19_resources[] = {
198 {0x5e, 0x5e, "ldov", IORESOURCE_REG, }, 198 {0x5e, 0x5e, "ldov", IORESOURCE_REG, },
199}; 199};
200 200
201static struct resource ldo20_resources[] __devinitdata = { 201static struct resource ldo20_resources[] = {
202 {0x9e, 0x9e, "ldov", IORESOURCE_REG, }, 202 {0x9e, 0x9e, "ldov", IORESOURCE_REG, },
203}; 203};
204 204
205static struct mfd_cell reg_devs[] __devinitdata = { 205static struct mfd_cell reg_devs[] = {
206 { 206 {
207 .name = "max8925-regulator", 207 .name = "max8925-regulator",
208 .id = 0, 208 .id = 0,
@@ -714,7 +714,7 @@ tsc_irq:
714 return 0; 714 return 0;
715} 715}
716 716
717static void __devinit init_regulator(struct max8925_chip *chip, 717static void init_regulator(struct max8925_chip *chip,
718 struct max8925_platform_data *pdata) 718 struct max8925_platform_data *pdata)
719{ 719{
720 int ret; 720 int ret;
@@ -821,7 +821,7 @@ static void __devinit init_regulator(struct max8925_chip *chip,
821 } 821 }
822} 822}
823 823
824int __devinit max8925_device_init(struct max8925_chip *chip, 824int max8925_device_init(struct max8925_chip *chip,
825 struct max8925_platform_data *pdata) 825 struct max8925_platform_data *pdata)
826{ 826{
827 int ret; 827 int ret;
@@ -901,7 +901,7 @@ out:
901 return ret; 901 return ret;
902} 902}
903 903
904void __devexit max8925_device_exit(struct max8925_chip *chip) 904void max8925_device_exit(struct max8925_chip *chip)
905{ 905{
906 if (chip->core_irq) 906 if (chip->core_irq)
907 free_irq(chip->core_irq, chip); 907 free_irq(chip->core_irq, chip);