Skip to content

Commit 1522043

Browse files
morimotopmundt
authored andcommitted
sh: move CLKDEV_xxx_ID macro to sh_clk.h
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 4857c70 commit 1522043

19 files changed

Lines changed: 4 additions & 55 deletions

‎arch/arm/mach-shmobile/clock-sh7367.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ static struct clk mstp_clks[MSTP_NR] = {
259259
[CMMSTP003] = MSTP(&r_clk, CMMSTPCR0, 3, 0), /* KEYSC */
260260
};
261261

262-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
263-
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
264-
265262
static struct clk_lookup lookups[] = {
266263
/* main clocks */
267264
CLKDEV_CON_ID("r_clk", &r_clk),

‎arch/arm/mach-shmobile/clock-sh7372.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,10 +561,6 @@ static struct clk mstp_clks[MSTP_NR] = {
561561
[MSTP403] = MSTP(&r_clk, SMSTPCR4, 3, 0), /* KEYSC */
562562
};
563563

564-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
565-
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
566-
#define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk }
567-
568564
static struct clk_lookup lookups[] = {
569565
/* main clocks */
570566
CLKDEV_CON_ID("dv_clki_div2_clk", &sh7372_dv_clki_div2_clk),

‎arch/arm/mach-shmobile/clock-sh7377.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,6 @@ static struct clk mstp_clks[] = {
267267
[MSTP403] = MSTP(&r_clk, SMSTPCR4, 3, 0), /* KEYSC */
268268
};
269269

270-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
271-
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
272-
273270
static struct clk_lookup lookups[] = {
274271
/* main clocks */
275272
CLKDEV_CON_ID("r_clk", &r_clk),

‎arch/arm/mach-shmobile/clock-sh73a0.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,6 @@ static struct clk mstp_clks[MSTP_NR] = {
306306
[MSTP403] = MSTP(&r_clk, SMSTPCR4, 3, 0), /* KEYSC */
307307
};
308308

309-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
310-
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
311-
#define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk }
312-
313309
static struct clk_lookup lookups[] = {
314310
/* main clocks */
315311
CLKDEV_CON_ID("r_clk", &r_clk),

‎arch/sh/boards/mach-highlander/setup.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,6 @@ static struct clk *r7780rp_clocks[] = {
335335
&ivdr_clk,
336336
};
337337

338-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
339-
340338
static struct clk_lookup lookups[] = {
341339
/* main clocks */
342340
CLKDEV_CON_ID("ivdr_clk", &ivdr_clk),

‎arch/sh/kernel/cpu/clock-cpg.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ static struct clk *onchip_clocks[] = {
3535
&cpu_clk,
3636
};
3737

38-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
39-
4038
static struct clk_lookup lookups[] = {
4139
/* main clocks */
4240
CLKDEV_CON_ID("master_clk", &master_clk),

‎arch/sh/kernel/cpu/sh4/clock-sh4-202.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ static struct clk *sh4202_onchip_clocks[] = {
147147
&sh4202_shoc_clk,
148148
};
149149

150-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
151-
152150
static struct clk_lookup lookups[] = {
153151
/* main clocks */
154152
CLKDEV_CON_ID("emi_clk", &sh4202_emi_clk),

‎arch/sh/kernel/cpu/sh4a/clock-sh7343.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,6 @@ static struct clk mstp_clks[MSTP_NR] = {
194194
[MSTP200] = MSTP(&div4_clks[DIV4_B], MSTPCR2, 0, 0),
195195
};
196196

197-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
198-
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
199-
#define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk }
200-
201197
static struct clk_lookup lookups[] = {
202198
/* main clocks */
203199
CLKDEV_CON_ID("rclk", &r_clk),

‎arch/sh/kernel/cpu/sh4a/clock-sh7366.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,6 @@ static struct clk mstp_clks[MSTP_NR] = {
192192
[MSTP200] = MSTP(&div4_clks[DIV4_B], MSTPCR2, 0, 0),
193193
};
194194

195-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
196-
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
197-
#define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk }
198-
199195
static struct clk_lookup lookups[] = {
200196
/* main clocks */
201197
CLKDEV_CON_ID("rclk", &r_clk),

‎arch/sh/kernel/cpu/sh4a/clock-sh7722.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ static struct clk mstp_clks[HWBLK_NR] = {
175175
SH_HWBLK_CLK(HWBLK_LCDC, &div4_clks[DIV4_P], 0),
176176
};
177177

178-
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
179-
#define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk }
180-
#define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk }
181-
182178
static struct clk_lookup lookups[] = {
183179
/* main clocks */
184180
CLKDEV_CON_ID("rclk", &r_clk),

0 commit comments

Comments
 (0)