Skip to content

Commit e10b87d

Browse files
committed
Merge branch 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-3.x
* 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-3.x: (39 commits) SH: static should be at beginning of declaration sh: move CLKDEV_xxx_ID macro to sh_clk.h sh: clock-shx3: add CLKDEV_ICK_ID for cleanup sh: clock-sh7786: add CLKDEV_ICK_ID for cleanup sh: clock-sh7785: add CLKDEV_ICK_ID for cleanup sh: clock-sh7757: add CLKDEV_ICK_ID for cleanup sh: clock-sh7366: add CLKDEV_ICK_ID for cleanup sh: clock-sh7343: add CLKDEV_ICK_ID for cleanup sh: clock-sh7722: add CLKDEV_ICK_ID for cleanup sh: clock-sh7724: add CLKDEV_ICK_ID for cleanup sh: clock-sh7366: modify I2C clock settings sh: clock-sh7343: modify I2C clock settings sh: clock-sh7723: modify I2C clock settings sh: clock-sh7722: modify I2C clock settings sh: clock-sh7724: modify I2C clock settings serial: sh-sci: Fix up pretty name printing for port IRQs. serial: sh-sci: Kill off per-port enable/disable callbacks. serial: sh-sci: Add missing module description/author bits. serial: sh-sci: Regtype probing doesn't need to be fatal. sh: Tidy up pre-clkdev clk_get() error handling. ...
2 parents 3da3f87 + 536628d commit e10b87d

54 files changed

Lines changed: 962 additions & 1188 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎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/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/
173173
cpuincdir-$(CONFIG_CPU_SH2A) += cpu-sh2a
174174
cpuincdir-$(CONFIG_CPU_SH2) += cpu-sh2
175175
cpuincdir-$(CONFIG_CPU_SH3) += cpu-sh3
176+
cpuincdir-$(CONFIG_CPU_SH4A) += cpu-sh4a
176177
cpuincdir-$(CONFIG_CPU_SH4) += cpu-sh4
177178
cpuincdir-$(CONFIG_CPU_SH5) += cpu-sh5
178179
cpuincdir-y += cpu-common # Must be last

‎arch/sh/boards/board-apsh4a3a.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static int apsh4a3a_clk_init(void)
116116
int ret;
117117

118118
clk = clk_get(NULL, "extal");
119-
if (!clk || IS_ERR(clk))
119+
if (IS_ERR(clk))
120120
return PTR_ERR(clk);
121121
ret = clk_set_rate(clk, 33333000);
122122
clk_put(clk);

‎arch/sh/boards/board-apsh4ad0a.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static int apsh4ad0a_clk_init(void)
9494
int ret;
9595

9696
clk = clk_get(NULL, "extal");
97-
if (!clk || IS_ERR(clk))
97+
if (IS_ERR(clk))
9898
return PTR_ERR(clk);
9999
ret = clk_set_rate(clk, 33333000);
100100
clk_put(clk);

‎arch/sh/boards/board-sh7785lcr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static int sh7785lcr_clk_init(void)
299299
int ret;
300300

301301
clk = clk_get(NULL, "extal");
302-
if (!clk || IS_ERR(clk))
302+
if (IS_ERR(clk))
303303
return PTR_ERR(clk);
304304
ret = clk_set_rate(clk, 33333333);
305305
clk_put(clk);

‎arch/sh/boards/board-urquell.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static int urquell_clk_init(void)
190190
return -EINVAL;
191191

192192
clk = clk_get(NULL, "extal");
193-
if (!clk || IS_ERR(clk))
193+
if (IS_ERR(clk))
194194
return PTR_ERR(clk);
195195
ret = clk_set_rate(clk, 33333333);
196196
clk_put(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),

0 commit comments

Comments
 (0)