Skip to content

Commit ec0ffe2

Browse files
committed
sh: Kill off all timer name clobbering.
Now that dev_name() can be used early, we no longer require a static string. Kill off all of the superfluous timer names. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 214a607 commit ec0ffe2

25 files changed

Lines changed: 0 additions & 242 deletions

‎arch/sh/kernel/cpu/sh2/setup-sh7619.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ static struct platform_device eth_device = {
128128
};
129129

130130
static struct sh_timer_config cmt0_platform_data = {
131-
.name = "CMT0",
132131
.channel_offset = 0x02,
133132
.timer_bit = 0,
134133
.clk = "peripheral_clk",
@@ -138,7 +137,6 @@ static struct sh_timer_config cmt0_platform_data = {
138137

139138
static struct resource cmt0_resources[] = {
140139
[0] = {
141-
.name = "CMT0",
142140
.start = 0xf84a0072,
143141
.end = 0xf84a0077,
144142
.flags = IORESOURCE_MEM,
@@ -160,7 +158,6 @@ static struct platform_device cmt0_device = {
160158
};
161159

162160
static struct sh_timer_config cmt1_platform_data = {
163-
.name = "CMT1",
164161
.channel_offset = 0x08,
165162
.timer_bit = 1,
166163
.clk = "peripheral_clk",
@@ -170,7 +167,6 @@ static struct sh_timer_config cmt1_platform_data = {
170167

171168
static struct resource cmt1_resources[] = {
172169
[0] = {
173-
.name = "CMT1",
174170
.start = 0xf84a0078,
175171
.end = 0xf84a007d,
176172
.flags = IORESOURCE_MEM,

‎arch/sh/kernel/cpu/sh2a/setup-mxg.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ static DECLARE_INTC_DESC(intc_desc, "mxg", vectors, groups,
115115
mask_registers, prio_registers, NULL);
116116

117117
static struct sh_timer_config mtu2_0_platform_data = {
118-
.name = "MTU2_0",
119118
.channel_offset = -0x80,
120119
.timer_bit = 0,
121120
.clk = "peripheral_clk",
@@ -124,7 +123,6 @@ static struct sh_timer_config mtu2_0_platform_data = {
124123

125124
static struct resource mtu2_0_resources[] = {
126125
[0] = {
127-
.name = "MTU2_0",
128126
.start = 0xff801300,
129127
.end = 0xff801326,
130128
.flags = IORESOURCE_MEM,
@@ -146,7 +144,6 @@ static struct platform_device mtu2_0_device = {
146144
};
147145

148146
static struct sh_timer_config mtu2_1_platform_data = {
149-
.name = "MTU2_1",
150147
.channel_offset = -0x100,
151148
.timer_bit = 1,
152149
.clk = "peripheral_clk",
@@ -155,7 +152,6 @@ static struct sh_timer_config mtu2_1_platform_data = {
155152

156153
static struct resource mtu2_1_resources[] = {
157154
[0] = {
158-
.name = "MTU2_1",
159155
.start = 0xff801380,
160156
.end = 0xff801390,
161157
.flags = IORESOURCE_MEM,
@@ -177,7 +173,6 @@ static struct platform_device mtu2_1_device = {
177173
};
178174

179175
static struct sh_timer_config mtu2_2_platform_data = {
180-
.name = "MTU2_2",
181176
.channel_offset = 0x80,
182177
.timer_bit = 2,
183178
.clk = "peripheral_clk",
@@ -186,7 +181,6 @@ static struct sh_timer_config mtu2_2_platform_data = {
186181

187182
static struct resource mtu2_2_resources[] = {
188183
[0] = {
189-
.name = "MTU2_2",
190184
.start = 0xff801000,
191185
.end = 0xff80100a,
192186
.flags = IORESOURCE_MEM,

‎arch/sh/kernel/cpu/sh2a/setup-sh7201.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ static struct platform_device rtc_device = {
318318
};
319319

320320
static struct sh_timer_config mtu2_0_platform_data = {
321-
.name = "MTU2_0",
322321
.channel_offset = -0x80,
323322
.timer_bit = 0,
324323
.clk = "peripheral_clk",
@@ -327,7 +326,6 @@ static struct sh_timer_config mtu2_0_platform_data = {
327326

328327
static struct resource mtu2_0_resources[] = {
329328
[0] = {
330-
.name = "MTU2_0",
331329
.start = 0xfffe4300,
332330
.end = 0xfffe4326,
333331
.flags = IORESOURCE_MEM,
@@ -349,7 +347,6 @@ static struct platform_device mtu2_0_device = {
349347
};
350348

351349
static struct sh_timer_config mtu2_1_platform_data = {
352-
.name = "MTU2_1",
353350
.channel_offset = -0x100,
354351
.timer_bit = 1,
355352
.clk = "peripheral_clk",
@@ -358,7 +355,6 @@ static struct sh_timer_config mtu2_1_platform_data = {
358355

359356
static struct resource mtu2_1_resources[] = {
360357
[0] = {
361-
.name = "MTU2_1",
362358
.start = 0xfffe4380,
363359
.end = 0xfffe4390,
364360
.flags = IORESOURCE_MEM,
@@ -380,7 +376,6 @@ static struct platform_device mtu2_1_device = {
380376
};
381377

382378
static struct sh_timer_config mtu2_2_platform_data = {
383-
.name = "MTU2_2",
384379
.channel_offset = 0x80,
385380
.timer_bit = 2,
386381
.clk = "peripheral_clk",
@@ -389,7 +384,6 @@ static struct sh_timer_config mtu2_2_platform_data = {
389384

390385
static struct resource mtu2_2_resources[] = {
391386
[0] = {
392-
.name = "MTU2_2",
393387
.start = 0xfffe4000,
394388
.end = 0xfffe400a,
395389
.flags = IORESOURCE_MEM,

‎arch/sh/kernel/cpu/sh2a/setup-sh7203.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ static struct platform_device scif3_device = {
234234
};
235235

236236
static struct sh_timer_config cmt0_platform_data = {
237-
.name = "CMT0",
238237
.channel_offset = 0x02,
239238
.timer_bit = 0,
240239
.clk = "peripheral_clk",
@@ -244,7 +243,6 @@ static struct sh_timer_config cmt0_platform_data = {
244243

245244
static struct resource cmt0_resources[] = {
246245
[0] = {
247-
.name = "CMT0",
248246
.start = 0xfffec002,
249247
.end = 0xfffec007,
250248
.flags = IORESOURCE_MEM,
@@ -266,7 +264,6 @@ static struct platform_device cmt0_device = {
266264
};
267265

268266
static struct sh_timer_config cmt1_platform_data = {
269-
.name = "CMT1",
270267
.channel_offset = 0x08,
271268
.timer_bit = 1,
272269
.clk = "peripheral_clk",
@@ -276,7 +273,6 @@ static struct sh_timer_config cmt1_platform_data = {
276273

277274
static struct resource cmt1_resources[] = {
278275
[0] = {
279-
.name = "CMT1",
280276
.start = 0xfffec008,
281277
.end = 0xfffec00d,
282278
.flags = IORESOURCE_MEM,
@@ -298,7 +294,6 @@ static struct platform_device cmt1_device = {
298294
};
299295

300296
static struct sh_timer_config mtu2_0_platform_data = {
301-
.name = "MTU2_0",
302297
.channel_offset = -0x80,
303298
.timer_bit = 0,
304299
.clk = "peripheral_clk",
@@ -307,7 +302,6 @@ static struct sh_timer_config mtu2_0_platform_data = {
307302

308303
static struct resource mtu2_0_resources[] = {
309304
[0] = {
310-
.name = "MTU2_0",
311305
.start = 0xfffe4300,
312306
.end = 0xfffe4326,
313307
.flags = IORESOURCE_MEM,
@@ -329,7 +323,6 @@ static struct platform_device mtu2_0_device = {
329323
};
330324

331325
static struct sh_timer_config mtu2_1_platform_data = {
332-
.name = "MTU2_1",
333326
.channel_offset = -0x100,
334327
.timer_bit = 1,
335328
.clk = "peripheral_clk",
@@ -338,7 +331,6 @@ static struct sh_timer_config mtu2_1_platform_data = {
338331

339332
static struct resource mtu2_1_resources[] = {
340333
[0] = {
341-
.name = "MTU2_1",
342334
.start = 0xfffe4380,
343335
.end = 0xfffe4390,
344336
.flags = IORESOURCE_MEM,

‎arch/sh/kernel/cpu/sh2a/setup-sh7206.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ static struct platform_device scif3_device = {
194194
};
195195

196196
static struct sh_timer_config cmt0_platform_data = {
197-
.name = "CMT0",
198197
.channel_offset = 0x02,
199198
.timer_bit = 0,
200199
.clk = "peripheral_clk",
@@ -204,7 +203,6 @@ static struct sh_timer_config cmt0_platform_data = {
204203

205204
static struct resource cmt0_resources[] = {
206205
[0] = {
207-
.name = "CMT0",
208206
.start = 0xfffec002,
209207
.end = 0xfffec007,
210208
.flags = IORESOURCE_MEM,
@@ -226,7 +224,6 @@ static struct platform_device cmt0_device = {
226224
};
227225

228226
static struct sh_timer_config cmt1_platform_data = {
229-
.name = "CMT1",
230227
.channel_offset = 0x08,
231228
.timer_bit = 1,
232229
.clk = "peripheral_clk",
@@ -236,7 +233,6 @@ static struct sh_timer_config cmt1_platform_data = {
236233

237234
static struct resource cmt1_resources[] = {
238235
[0] = {
239-
.name = "CMT1",
240236
.start = 0xfffec008,
241237
.end = 0xfffec00d,
242238
.flags = IORESOURCE_MEM,
@@ -258,7 +254,6 @@ static struct platform_device cmt1_device = {
258254
};
259255

260256
static struct sh_timer_config mtu2_0_platform_data = {
261-
.name = "MTU2_0",
262257
.channel_offset = -0x80,
263258
.timer_bit = 0,
264259
.clk = "peripheral_clk",
@@ -267,7 +262,6 @@ static struct sh_timer_config mtu2_0_platform_data = {
267262

268263
static struct resource mtu2_0_resources[] = {
269264
[0] = {
270-
.name = "MTU2_0",
271265
.start = 0xfffe4300,
272266
.end = 0xfffe4326,
273267
.flags = IORESOURCE_MEM,
@@ -289,7 +283,6 @@ static struct platform_device mtu2_0_device = {
289283
};
290284

291285
static struct sh_timer_config mtu2_1_platform_data = {
292-
.name = "MTU2_1",
293286
.channel_offset = -0x100,
294287
.timer_bit = 1,
295288
.clk = "peripheral_clk",
@@ -298,7 +291,6 @@ static struct sh_timer_config mtu2_1_platform_data = {
298291

299292
static struct resource mtu2_1_resources[] = {
300293
[0] = {
301-
.name = "MTU2_1",
302294
.start = 0xfffe4380,
303295
.end = 0xfffe4390,
304296
.flags = IORESOURCE_MEM,
@@ -320,7 +312,6 @@ static struct platform_device mtu2_1_device = {
320312
};
321313

322314
static struct sh_timer_config mtu2_2_platform_data = {
323-
.name = "MTU2_2",
324315
.channel_offset = 0x80,
325316
.timer_bit = 2,
326317
.clk = "peripheral_clk",
@@ -329,7 +320,6 @@ static struct sh_timer_config mtu2_2_platform_data = {
329320

330321
static struct resource mtu2_2_resources[] = {
331322
[0] = {
332-
.name = "MTU2_2",
333323
.start = 0xfffe4000,
334324
.end = 0xfffe400a,
335325
.flags = IORESOURCE_MEM,

‎arch/sh/kernel/cpu/sh3/setup-sh7705.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ static struct platform_device rtc_device = {
124124
};
125125

126126
static struct sh_timer_config tmu0_platform_data = {
127-
.name = "TMU0",
128127
.channel_offset = 0x02,
129128
.timer_bit = 0,
130129
.clk = "peripheral_clk",
@@ -133,7 +132,6 @@ static struct sh_timer_config tmu0_platform_data = {
133132

134133
static struct resource tmu0_resources[] = {
135134
[0] = {
136-
.name = "TMU0",
137135
.start = 0xfffffe94,
138136
.end = 0xfffffe9f,
139137
.flags = IORESOURCE_MEM,
@@ -155,7 +153,6 @@ static struct platform_device tmu0_device = {
155153
};
156154

157155
static struct sh_timer_config tmu1_platform_data = {
158-
.name = "TMU1",
159156
.channel_offset = 0xe,
160157
.timer_bit = 1,
161158
.clk = "peripheral_clk",
@@ -164,7 +161,6 @@ static struct sh_timer_config tmu1_platform_data = {
164161

165162
static struct resource tmu1_resources[] = {
166163
[0] = {
167-
.name = "TMU1",
168164
.start = 0xfffffea0,
169165
.end = 0xfffffeab,
170166
.flags = IORESOURCE_MEM,
@@ -186,15 +182,13 @@ static struct platform_device tmu1_device = {
186182
};
187183

188184
static struct sh_timer_config tmu2_platform_data = {
189-
.name = "TMU2",
190185
.channel_offset = 0x1a,
191186
.timer_bit = 2,
192187
.clk = "peripheral_clk",
193188
};
194189

195190
static struct resource tmu2_resources[] = {
196191
[0] = {
197-
.name = "TMU2",
198192
.start = 0xfffffeac,
199193
.end = 0xfffffebb,
200194
.flags = IORESOURCE_MEM,

‎arch/sh/kernel/cpu/sh3/setup-sh770x.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ static struct platform_device scif2_device = {
157157
#endif
158158

159159
static struct sh_timer_config tmu0_platform_data = {
160-
.name = "TMU0",
161160
.channel_offset = 0x02,
162161
.timer_bit = 0,
163162
.clk = "peripheral_clk",
@@ -166,7 +165,6 @@ static struct sh_timer_config tmu0_platform_data = {
166165

167166
static struct resource tmu0_resources[] = {
168167
[0] = {
169-
.name = "TMU0",
170168
.start = 0xfffffe94,
171169
.end = 0xfffffe9f,
172170
.flags = IORESOURCE_MEM,
@@ -188,7 +186,6 @@ static struct platform_device tmu0_device = {
188186
};
189187

190188
static struct sh_timer_config tmu1_platform_data = {
191-
.name = "TMU1",
192189
.channel_offset = 0xe,
193190
.timer_bit = 1,
194191
.clk = "peripheral_clk",
@@ -197,7 +194,6 @@ static struct sh_timer_config tmu1_platform_data = {
197194

198195
static struct resource tmu1_resources[] = {
199196
[0] = {
200-
.name = "TMU1",
201197
.start = 0xfffffea0,
202198
.end = 0xfffffeab,
203199
.flags = IORESOURCE_MEM,
@@ -219,15 +215,13 @@ static struct platform_device tmu1_device = {
219215
};
220216

221217
static struct sh_timer_config tmu2_platform_data = {
222-
.name = "TMU2",
223218
.channel_offset = 0x1a,
224219
.timer_bit = 2,
225220
.clk = "peripheral_clk",
226221
};
227222

228223
static struct resource tmu2_resources[] = {
229224
[0] = {
230-
.name = "TMU2",
231225
.start = 0xfffffeac,
232226
.end = 0xfffffebb,
233227
.flags = IORESOURCE_MEM,

0 commit comments

Comments
 (0)