| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /*************************************************************************** |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2004-2008 SMSC |
|---|
| 4 | 5 | * 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/>. |
|---|
| 18 | 6 | * |
|---|
| 19 | 7 | ***************************************************************************/ |
|---|
| 20 | 8 | #ifndef __SMSC911X_H__ |
|---|
| .. | .. |
|---|
| 67 | 55 | |
|---|
| 68 | 56 | #ifdef CONFIG_DEBUG_SPINLOCK |
|---|
| 69 | 57 | #define SMSC_ASSERT_MAC_LOCK(pdata) \ |
|---|
| 70 | | - WARN_ON_SMP(!spin_is_locked(&pdata->mac_lock)) |
|---|
| 58 | + lockdep_assert_held(&pdata->mac_lock) |
|---|
| 71 | 59 | #else |
|---|
| 72 | 60 | #define SMSC_ASSERT_MAC_LOCK(pdata) do {} while (0) |
|---|
| 73 | 61 | #endif /* CONFIG_DEBUG_SPINLOCK */ |
|---|