diff options
Diffstat (limited to 'drivers/mfd/max8925-core.c')
-rw-r--r-- | drivers/mfd/max8925-core.c | 58 |
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 | ||
22 | static struct resource bk_resources[] __devinitdata = { | 22 | static 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 | ||
27 | static struct mfd_cell bk_devs[] __devinitdata = { | 27 | static 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 | ||
113 | static struct resource sd1_resources[] __devinitdata = { | 113 | static struct resource sd1_resources[] = { |
114 | {0x06, 0x06, "sdv", IORESOURCE_REG, }, | 114 | {0x06, 0x06, "sdv", IORESOURCE_REG, }, |
115 | }; | 115 | }; |
116 | 116 | ||
117 | static struct resource sd2_resources[] __devinitdata = { | 117 | static struct resource sd2_resources[] = { |
118 | {0x09, 0x09, "sdv", IORESOURCE_REG, }, | 118 | {0x09, 0x09, "sdv", IORESOURCE_REG, }, |
119 | }; | 119 | }; |
120 | 120 | ||
121 | static struct resource sd3_resources[] __devinitdata = { | 121 | static struct resource sd3_resources[] = { |
122 | {0x0c, 0x0c, "sdv", IORESOURCE_REG, }, | 122 | {0x0c, 0x0c, "sdv", IORESOURCE_REG, }, |
123 | }; | 123 | }; |
124 | 124 | ||
125 | static struct resource ldo1_resources[] __devinitdata = { | 125 | static struct resource ldo1_resources[] = { |
126 | {0x1a, 0x1a, "ldov", IORESOURCE_REG, }, | 126 | {0x1a, 0x1a, "ldov", IORESOURCE_REG, }, |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static struct resource ldo2_resources[] __devinitdata = { | 129 | static struct resource ldo2_resources[] = { |
130 | {0x1e, 0x1e, "ldov", IORESOURCE_REG, }, | 130 | {0x1e, 0x1e, "ldov", IORESOURCE_REG, }, |
131 | }; | 131 | }; |
132 | 132 | ||
133 | static struct resource ldo3_resources[] __devinitdata = { | 133 | static struct resource ldo3_resources[] = { |
134 | {0x22, 0x22, "ldov", IORESOURCE_REG, }, | 134 | {0x22, 0x22, "ldov", IORESOURCE_REG, }, |
135 | }; | 135 | }; |
136 | 136 | ||
137 | static struct resource ldo4_resources[] __devinitdata = { | 137 | static struct resource ldo4_resources[] = { |
138 | {0x26, 0x26, "ldov", IORESOURCE_REG, }, | 138 | {0x26, 0x26, "ldov", IORESOURCE_REG, }, |
139 | }; | 139 | }; |
140 | 140 | ||
141 | static struct resource ldo5_resources[] __devinitdata = { | 141 | static struct resource ldo5_resources[] = { |
142 | {0x2a, 0x2a, "ldov", IORESOURCE_REG, }, | 142 | {0x2a, 0x2a, "ldov", IORESOURCE_REG, }, |
143 | }; | 143 | }; |
144 | 144 | ||
145 | static struct resource ldo6_resources[] __devinitdata = { | 145 | static struct resource ldo6_resources[] = { |
146 | {0x2e, 0x2e, "ldov", IORESOURCE_REG, }, | 146 | {0x2e, 0x2e, "ldov", IORESOURCE_REG, }, |
147 | }; | 147 | }; |
148 | 148 | ||
149 | static struct resource ldo7_resources[] __devinitdata = { | 149 | static struct resource ldo7_resources[] = { |
150 | {0x32, 0x32, "ldov", IORESOURCE_REG, }, | 150 | {0x32, 0x32, "ldov", IORESOURCE_REG, }, |
151 | }; | 151 | }; |
152 | 152 | ||
153 | static struct resource ldo8_resources[] __devinitdata = { | 153 | static struct resource ldo8_resources[] = { |
154 | {0x36, 0x36, "ldov", IORESOURCE_REG, }, | 154 | {0x36, 0x36, "ldov", IORESOURCE_REG, }, |
155 | }; | 155 | }; |
156 | 156 | ||
157 | static struct resource ldo9_resources[] __devinitdata = { | 157 | static struct resource ldo9_resources[] = { |
158 | {0x3a, 0x3a, "ldov", IORESOURCE_REG, }, | 158 | {0x3a, 0x3a, "ldov", IORESOURCE_REG, }, |
159 | }; | 159 | }; |
160 | 160 | ||
161 | static struct resource ldo10_resources[] __devinitdata = { | 161 | static struct resource ldo10_resources[] = { |
162 | {0x3e, 0x3e, "ldov", IORESOURCE_REG, }, | 162 | {0x3e, 0x3e, "ldov", IORESOURCE_REG, }, |
163 | }; | 163 | }; |
164 | 164 | ||
165 | static struct resource ldo11_resources[] __devinitdata = { | 165 | static struct resource ldo11_resources[] = { |
166 | {0x42, 0x42, "ldov", IORESOURCE_REG, }, | 166 | {0x42, 0x42, "ldov", IORESOURCE_REG, }, |
167 | }; | 167 | }; |
168 | 168 | ||
169 | static struct resource ldo12_resources[] __devinitdata = { | 169 | static struct resource ldo12_resources[] = { |
170 | {0x46, 0x46, "ldov", IORESOURCE_REG, }, | 170 | {0x46, 0x46, "ldov", IORESOURCE_REG, }, |
171 | }; | 171 | }; |
172 | 172 | ||
173 | static struct resource ldo13_resources[] __devinitdata = { | 173 | static struct resource ldo13_resources[] = { |
174 | {0x4a, 0x4a, "ldov", IORESOURCE_REG, }, | 174 | {0x4a, 0x4a, "ldov", IORESOURCE_REG, }, |
175 | }; | 175 | }; |
176 | 176 | ||
177 | static struct resource ldo14_resources[] __devinitdata = { | 177 | static struct resource ldo14_resources[] = { |
178 | {0x4e, 0x4e, "ldov", IORESOURCE_REG, }, | 178 | {0x4e, 0x4e, "ldov", IORESOURCE_REG, }, |
179 | }; | 179 | }; |
180 | 180 | ||
181 | static struct resource ldo15_resources[] __devinitdata = { | 181 | static struct resource ldo15_resources[] = { |
182 | {0x52, 0x52, "ldov", IORESOURCE_REG, }, | 182 | {0x52, 0x52, "ldov", IORESOURCE_REG, }, |
183 | }; | 183 | }; |
184 | 184 | ||
185 | static struct resource ldo16_resources[] __devinitdata = { | 185 | static struct resource ldo16_resources[] = { |
186 | {0x12, 0x12, "ldov", IORESOURCE_REG, }, | 186 | {0x12, 0x12, "ldov", IORESOURCE_REG, }, |
187 | }; | 187 | }; |
188 | 188 | ||
189 | static struct resource ldo17_resources[] __devinitdata = { | 189 | static struct resource ldo17_resources[] = { |
190 | {0x16, 0x16, "ldov", IORESOURCE_REG, }, | 190 | {0x16, 0x16, "ldov", IORESOURCE_REG, }, |
191 | }; | 191 | }; |
192 | 192 | ||
193 | static struct resource ldo18_resources[] __devinitdata = { | 193 | static struct resource ldo18_resources[] = { |
194 | {0x74, 0x74, "ldov", IORESOURCE_REG, }, | 194 | {0x74, 0x74, "ldov", IORESOURCE_REG, }, |
195 | }; | 195 | }; |
196 | 196 | ||
197 | static struct resource ldo19_resources[] __devinitdata = { | 197 | static struct resource ldo19_resources[] = { |
198 | {0x5e, 0x5e, "ldov", IORESOURCE_REG, }, | 198 | {0x5e, 0x5e, "ldov", IORESOURCE_REG, }, |
199 | }; | 199 | }; |
200 | 200 | ||
201 | static struct resource ldo20_resources[] __devinitdata = { | 201 | static struct resource ldo20_resources[] = { |
202 | {0x9e, 0x9e, "ldov", IORESOURCE_REG, }, | 202 | {0x9e, 0x9e, "ldov", IORESOURCE_REG, }, |
203 | }; | 203 | }; |
204 | 204 | ||
205 | static struct mfd_cell reg_devs[] __devinitdata = { | 205 | static 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 | ||
717 | static void __devinit init_regulator(struct max8925_chip *chip, | 717 | static 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 | ||
824 | int __devinit max8925_device_init(struct max8925_chip *chip, | 824 | int 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 | ||
904 | void __devexit max8925_device_exit(struct max8925_chip *chip) | 904 | void 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); |