summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.22/0027-ARM-SAMSUNG-Should-check-for-IS_ERR-clk-instead-of-N.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.22/0027-ARM-SAMSUNG-Should-check-for-IS_ERR-clk-instead-of-N.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.22/0027-ARM-SAMSUNG-Should-check-for-IS_ERR-clk-instead-of-N.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.22/0027-ARM-SAMSUNG-Should-check-for-IS_ERR-clk-instead-of-N.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.22/0027-ARM-SAMSUNG-Should-check-for-IS_ERR-clk-instead-of-N.patch
new file mode 100644
index 00000000..99b9398a
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.22/0027-ARM-SAMSUNG-Should-check-for-IS_ERR-clk-instead-of-N.patch
@@ -0,0 +1,33 @@
1From dcf35ea664aae563cd99db11c78285f28b7bdcde Mon Sep 17 00:00:00 2001
2From: Jonghwan Choi <jhbird.choi@samsung.com>
3Date: Wed, 20 Jun 2012 17:05:37 +0900
4Subject: [PATCH 27/46] ARM: SAMSUNG: Should check for IS_ERR(clk) instead of
5 NULL
6
7commit a5d8f4765f0e92ef027492a8cb979c5b8d45f2c3 upstream.
8
9On the error condition clk_get() returns ERR_PTR().
10
11Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
12Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
13Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
14---
15 arch/arm/plat-samsung/include/plat/watchdog-reset.h | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/arch/arm/plat-samsung/include/plat/watchdog-reset.h b/arch/arm/plat-samsung/include/plat/watchdog-reset.h
19index 40dbb2b..11b19ea 100644
20--- a/arch/arm/plat-samsung/include/plat/watchdog-reset.h
21+++ b/arch/arm/plat-samsung/include/plat/watchdog-reset.h
22@@ -24,7 +24,7 @@ static inline void arch_wdt_reset(void)
23
24 __raw_writel(0, S3C2410_WTCON); /* disable watchdog, to be safe */
25
26- if (s3c2410_wdtclk)
27+ if (!IS_ERR(s3c2410_wdtclk))
28 clk_enable(s3c2410_wdtclk);
29
30 /* put initial values into count and data */
31--
321.7.10
33