Skip to content

Commit ab06418

Browse files
lunndavem330
authored andcommitted
net: phy: Fixup GPLv2+ SPDX tags based on license text
A few PHY drivers have the GPLv2+ license text. They then either have a MODULE_LICENSE() of GPLv2 only, or an SPDX tag of GPLv2 only. Since the license text is much easier to understand than either the SPDX tag or the MODULE_LICENSE, use it as the definitive source of the licence, and fixup the others when there are contradictions. Cc: David Wu <david.wu@rock-chips.com> Cc: Dongpo Li <lidongpo@hisilicon.com> Cc: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 25974d8 commit ab06418

3 files changed

Lines changed: 5 additions & 28 deletions

File tree

‎drivers/net/phy/asix.c‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
// SPDX-License-Identifier: GPL-2.0
1+
// SPDX-License-Identifier: GPL-2.0+
22
/* Driver for Asix PHYs
33
*
44
* Author: Michael Schmitz <schmitzmic@gmail.com>
5-
*
6-
* This program is free software; you can redistribute it and/or modify it
7-
* under the terms of the GNU General Public License as published by the
8-
* Free Software Foundation; either version 2 of the License, or (at your
9-
* option) any later version.
10-
*
115
*/
126
#include <linux/kernel.h>
137
#include <linux/errno.h>

‎drivers/net/phy/mdio-hisi-femac.c‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1+
// SPDX-License-Identifier: GPL-2.0+
12
/*
23
* Hisilicon Fast Ethernet MDIO Bus Driver
34
*
45
* Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
5-
*
6-
* This program is free software; you can redistribute it and/or modify
7-
* it under the terms of the GNU General Public License as published by
8-
* the Free Software Foundation; either version 2 of the License, or
9-
* (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
#include <linux/clk.h>
@@ -163,4 +151,4 @@ module_platform_driver(hisi_femac_mdio_driver);
163151

164152
MODULE_DESCRIPTION("Hisilicon Fast Ethernet MAC MDIO interface driver");
165153
MODULE_AUTHOR("Dongpo Li <lidongpo@hisilicon.com>");
166-
MODULE_LICENSE("GPL v2");
154+
MODULE_LICENSE("GPL");

‎drivers/net/phy/rockchip.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0+
12
/**
23
* drivers/net/phy/rockchip.c
34
*
@@ -6,12 +7,6 @@
67
* Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
78
*
89
* David Wu <david.wu@rock-chips.com>
9-
*
10-
* This program is free software; you can redistribute it and/or modify
11-
* it under the terms of the GNU General Public License as published by
12-
* the Free Software Foundation; either version 2 of the License, or
13-
* (at your option) any later version.
14-
*
1510
*/
1611

1712
#include <linux/ethtool.h>
@@ -229,4 +224,4 @@ MODULE_DEVICE_TABLE(mdio, rockchip_phy_tbl);
229224

230225
MODULE_AUTHOR("David Wu <david.wu@rock-chips.com>");
231226
MODULE_DESCRIPTION("Rockchip Ethernet PHY driver");
232-
MODULE_LICENSE("GPL v2");
227+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)