hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/ethernet/smsc/smsc911x.h
....@@ -1,20 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /***************************************************************************
23 *
34 * Copyright (C) 2004-2008 SMSC
45 * Copyright (C) 2005-2008 ARM
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version 2
9
- * of the License, or (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
186 *
197 ***************************************************************************/
208 #ifndef __SMSC911X_H__
....@@ -67,7 +55,7 @@
6755
6856 #ifdef CONFIG_DEBUG_SPINLOCK
6957 #define SMSC_ASSERT_MAC_LOCK(pdata) \
70
- WARN_ON_SMP(!spin_is_locked(&pdata->mac_lock))
58
+ lockdep_assert_held(&pdata->mac_lock)
7159 #else
7260 #define SMSC_ASSERT_MAC_LOCK(pdata) do {} while (0)
7361 #endif /* CONFIG_DEBUG_SPINLOCK */