summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-bsc913x/bsc9132qds/0004-fix-wrong-WDTP_MASK-in-booke_wdt_c.patch
blob: c9e2308c7f3a13a876cdeedf42267856681ce21d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From f94d0836740b00fb99861651ce261df94244a1d7 Mon Sep 17 00:00:00 2001
From: Alex He <Alex.He@enea.com>
Date: Wed, 22 Aug 2012 11:40:11 +0200
Subject: [PATCH] fix wrong WDTP_MASK in booke_wdt.c in
 linux-bsc9132qds-2.6.33

---
 drivers/watchdog/booke_wdt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/watchdog/booke_wdt.c b/drivers/watchdog/booke_wdt.c
index a01e298..77defbe 100644
--- a/drivers/watchdog/booke_wdt.c
+++ b/drivers/watchdog/booke_wdt.c
@@ -44,7 +44,7 @@ u32 booke_wdt_period = WDT_PERIOD_DEFAULT;
 
 #ifdef	CONFIG_FSL_BOOKE
 #define WDTP(x)		((((x)&0x3)<<30)|(((x)&0x3c)<<15))
-#define WDTP_MASK	(WDTP(0))
+#define WDTP_MASK	(WDTP(0x3f))
 #else
 #define WDTP(x)		(TCR_WP(x))
 #define WDTP_MASK	(TCR_WP_MASK)
-- 
1.7.5.4