// update some references to the deprecated SPIN_LOCK_UNLOCKED
//
// Confidence: High
// Copyright: (C) Gilles Muller, Julia Lawall, EMN, INRIA, DIKU.  GPLv2.
// URL: http://coccinelle.lip6.fr/rules/sl.html
// Options:

@@
declarer name DEFINE_SPINLOCK;
identifier xxx_lock;
@@

- spinlock_t xxx_lock = SPIN_LOCK_UNLOCKED;
+ DEFINE_SPINLOCK(xxx_lock);

@@
expression E;
@@

- E = SPIN_LOCK_UNLOCKED
+ spin_lock_init(&E)