aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/cpu5wdt.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-29 00:54:01 -0500
committerWim Van Sebroeck <wim@iguana.be>2012-01-06 09:17:17 -0500
commit1334f32938e46fb321c67a652997d33583257249 (patch)
treef296005ef79641ea4733af19cda0f5bf736824b1 /drivers/watchdog/cpu5wdt.c
parent216f3ad9aa5731024b9c96e63b676f9f65078dd5 (diff)
watchdog: Use DEFINE_SPINLOCK() for static spinlocks
Rather than just defining static spinlock_t variables and then initializing them later in init functions, simply define them with DEFINE_SPINLOCK() and remove the calls to spin_lock_init(). Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Nicolas Thill <nico@openwrt.org> Cc: Heiko Ronsdorf <hero@ihg.uni-duisburg.de> Cc: Rodolfo Giometti <giometti@ascensit.com> Cc: Andrey Panin <pazke@donpac.ru> Cc: Guido Guenther <agx@sigxcpu.org> Cc: Curt E Bruns <curt.e.bruns@intel.com> Cc: Deepak Saxena <dsaxena@plexity.net> Cc: Andrew Victor <linux@maxim.org.za> Cc: George G. Davis <gdavis@mvista.com> Cc: Sylver Bruneau <sylver.bruneau@googlemail.com> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/cpu5wdt.c')
-rw-r--r--drivers/watchdog/cpu5wdt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/watchdog/cpu5wdt.c b/drivers/watchdog/cpu5wdt.c
index edd3475f41db..251c863d71dd 100644
--- a/drivers/watchdog/cpu5wdt.c
+++ b/drivers/watchdog/cpu5wdt.c
@@ -39,7 +39,7 @@
39static int verbose; 39static int verbose;
40static int port = 0x91; 40static int port = 0x91;
41static int ticks = 10000; 41static int ticks = 10000;
42static spinlock_t cpu5wdt_lock; 42static DEFINE_SPINLOCK(cpu5wdt_lock);
43 43
44#define PFX "cpu5wdt: " 44#define PFX "cpu5wdt: "
45 45
@@ -223,7 +223,6 @@ static int __devinit cpu5wdt_init(void)
223 "port=0x%x, verbose=%i\n", port, verbose); 223 "port=0x%x, verbose=%i\n", port, verbose);
224 224
225 init_completion(&cpu5wdt_device.stop); 225 init_completion(&cpu5wdt_device.stop);
226 spin_lock_init(&cpu5wdt_lock);
227 cpu5wdt_device.queue = 0; 226 cpu5wdt_device.queue = 0;
228 setup_timer(&cpu5wdt_device.timer, cpu5wdt_trigger, 0); 227 setup_timer(&cpu5wdt_device.timer, cpu5wdt_trigger, 0);
229 cpu5wdt_device.default_ticks = ticks; 228 cpu5wdt_device.default_ticks = ticks;