Skip to content

Commit ee0c2ef

Browse files
morimotopmundt
authored andcommitted
sh: clock-sh7366: add CLKDEV_ICK_ID for cleanup
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 074fcdf commit ee0c2ef

1 file changed

Lines changed: 6 additions & 16 deletions

File tree

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

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ static struct clk mstp_clks[MSTP_NR] = {
194194

195195
#define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk }
196196
#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 }
197198

198199
static struct clk_lookup lookups[] = {
199200
/* main clocks */
@@ -232,22 +233,11 @@ static struct clk_lookup lookups[] = {
232233
CLKDEV_CON_ID("rwdt0", &mstp_clks[MSTP013]),
233234
CLKDEV_CON_ID("mfi0", &mstp_clks[MSTP011]),
234235
CLKDEV_CON_ID("flctl0", &mstp_clks[MSTP010]),
235-
{
236-
/* SCIF0 */
237-
.dev_id = "sh-sci.0",
238-
.con_id = "sci_fck",
239-
.clk = &mstp_clks[MSTP007],
240-
}, {
241-
/* SCIF1 */
242-
.dev_id = "sh-sci.1",
243-
.con_id = "sci_fck",
244-
.clk = &mstp_clks[MSTP006],
245-
}, {
246-
/* SCIF2 */
247-
.dev_id = "sh-sci.2",
248-
.con_id = "sci_fck",
249-
.clk = &mstp_clks[MSTP005],
250-
},
236+
237+
CLKDEV_ICK_ID("sci_fck", "sh-sci.0", &mstp_clks[MSTP007]),
238+
CLKDEV_ICK_ID("sci_fck", "sh-sci.1", &mstp_clks[MSTP006]),
239+
CLKDEV_ICK_ID("sci_fck", "sh-sci.2", &mstp_clks[MSTP005]),
240+
251241
CLKDEV_CON_ID("msiof0", &mstp_clks[MSTP002]),
252242
CLKDEV_CON_ID("sbr0", &mstp_clks[MSTP001]),
253243
CLKDEV_DEV_ID("i2c-sh_mobile.0", &mstp_clks[MSTP109]),

0 commit comments

Comments
 (0)