Skip to content

Commit a5d8f47

Browse files
Jonghwan Choikgene
authored andcommitted
ARM: SAMSUNG: Should check for IS_ERR(clk) instead of NULL
On the error condition clk_get() returns ERR_PTR(). Signed-off-by: Jonghwan Choi <[email protected]> Cc: Stable <[email protected]> Signed-off-by: Kukjin Kim <[email protected]>
1 parent 485802a commit a5d8f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/plat-samsung/include/plat/watchdog-reset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static inline void arch_wdt_reset(void)
2525

2626
__raw_writel(0, S3C2410_WTCON); /* disable watchdog, to be safe */
2727

28-
if (s3c2410_wdtclk)
28+
if (!IS_ERR(s3c2410_wdtclk))
2929
clk_enable(s3c2410_wdtclk);
3030

3131
/* put initial values into count and data */

0 commit comments

Comments
 (0)