diff options
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.patch | 33 |
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 @@ | |||
1 | From dcf35ea664aae563cd99db11c78285f28b7bdcde Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonghwan Choi <jhbird.choi@samsung.com> | ||
3 | Date: Wed, 20 Jun 2012 17:05:37 +0900 | ||
4 | Subject: [PATCH 27/46] ARM: SAMSUNG: Should check for IS_ERR(clk) instead of | ||
5 | NULL | ||
6 | |||
7 | commit a5d8f4765f0e92ef027492a8cb979c5b8d45f2c3 upstream. | ||
8 | |||
9 | On the error condition clk_get() returns ERR_PTR(). | ||
10 | |||
11 | Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com> | ||
12 | Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> | ||
13 | Signed-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 | |||
18 | diff --git a/arch/arm/plat-samsung/include/plat/watchdog-reset.h b/arch/arm/plat-samsung/include/plat/watchdog-reset.h | ||
19 | index 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 | -- | ||
32 | 1.7.10 | ||
33 | |||