]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/net/ethernet/smsc/smsc911x.h: use lockdep_assert_held() instead of home grown...
authorAndi Kleen <ak@linux.intel.com>
Wed, 25 Apr 2012 01:03:52 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:28 +0000 (15:17 +1000)
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/net/ethernet/smsc/smsc911x.h

index 9ad5e5d39a03823c4389ee5842d0ecdd0b6db5fc..4fbb697b7d3b5c4323ba935c1e9aa928bca2259b 100644 (file)
@@ -52,7 +52,7 @@
 
 #ifdef CONFIG_DEBUG_SPINLOCK
 #define SMSC_ASSERT_MAC_LOCK(pdata) \
-               WARN_ON(!spin_is_locked(&pdata->mac_lock))
+               lockdep_assert_held(&(pdata)->mac_lock)
 #else
 #define SMSC_ASSERT_MAC_LOCK(pdata) do {} while (0)
 #endif                         /* CONFIG_DEBUG_SPINLOCK */