diff options
author | Andrew Lunn <andrew@lunn.ch> | 2019-01-21 13:10:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-22 23:58:40 -0500 |
commit | 5f85757572e17f11b956e77405289babf1f234e3 (patch) | |
tree | 762dd626909ab726d419608d97b76b0ddf5ef706 | |
parent | 7ccbd9b86fb619cd794c7233f861d4d67b9c8e26 (diff) |
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+, or an SPDX tag of GPLv2+.
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 with others when there are contradictions.
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Jonas Jensen <jonas.jensen@gmail.com>
Cc: Laurent Pinchart <laurentp@cse-semaphore.com>
Cc: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Cc: Scott Wood <scottwood@freescale.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Andrew F. Davis <afd@ti.com>
Acked-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/phy/dp83822.c | 12 | ||||
-rw-r--r-- | drivers/net/phy/dp83848.c | 12 | ||||
-rw-r--r-- | drivers/net/phy/dp83867.c | 12 | ||||
-rw-r--r-- | drivers/net/phy/mdio-bitbang.c | 7 | ||||
-rw-r--r-- | drivers/net/phy/mdio-gpio.c | 7 | ||||
-rw-r--r-- | drivers/net/phy/mdio-moxart.c | 7 | ||||
-rw-r--r-- | drivers/net/phy/mdio-sun4i.c | 7 | ||||
-rw-r--r-- | drivers/net/phy/phylink.c | 7 |
8 files changed, 16 insertions, 55 deletions
diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c index 24c7f149f3e6..bbd8c22067f3 100644 --- a/drivers/net/phy/dp83822.c +++ b/drivers/net/phy/dp83822.c | |||
@@ -1,16 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Driver for the Texas Instruments DP83822 PHY | 3 | * Driver for the Texas Instruments DP83822 PHY |
3 | * | 4 | * |
4 | * Copyright (C) 2017 Texas Instruments Inc. | 5 | * Copyright (C) 2017 Texas Instruments Inc. |
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. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | */ | 6 | */ |
15 | 7 | ||
16 | #include <linux/ethtool.h> | 8 | #include <linux/ethtool.h> |
@@ -338,4 +330,4 @@ MODULE_DEVICE_TABLE(mdio, dp83822_tbl); | |||
338 | 330 | ||
339 | MODULE_DESCRIPTION("Texas Instruments DP83822 PHY driver"); | 331 | MODULE_DESCRIPTION("Texas Instruments DP83822 PHY driver"); |
340 | MODULE_AUTHOR("Dan Murphy <dmurphy@ti.com"); | 332 | MODULE_AUTHOR("Dan Murphy <dmurphy@ti.com"); |
341 | MODULE_LICENSE("GPL"); | 333 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/net/phy/dp83848.c b/drivers/net/phy/dp83848.c index a6b55909d1dc..f55dc907c2f3 100644 --- a/drivers/net/phy/dp83848.c +++ b/drivers/net/phy/dp83848.c | |||
@@ -1,16 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Driver for the Texas Instruments DP83848 PHY | 3 | * Driver for the Texas Instruments DP83848 PHY |
3 | * | 4 | * |
4 | * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/ | 5 | * Copyright (C) 2015-2016 Texas Instruments Incorporated - http://www.ti.com/ |
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. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | */ | 6 | */ |
15 | 7 | ||
16 | #include <linux/module.h> | 8 | #include <linux/module.h> |
@@ -133,4 +125,4 @@ module_phy_driver(dp83848_driver); | |||
133 | 125 | ||
134 | MODULE_DESCRIPTION("Texas Instruments DP83848 PHY driver"); | 126 | MODULE_DESCRIPTION("Texas Instruments DP83848 PHY driver"); |
135 | MODULE_AUTHOR("Andrew F. Davis <afd@ti.com>"); | 127 | MODULE_AUTHOR("Andrew F. Davis <afd@ti.com>"); |
136 | MODULE_LICENSE("GPL"); | 128 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index da6a67d47ce9..8a8d9f606b3e 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c | |||
@@ -1,16 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Driver for the Texas Instruments DP83867 PHY | 3 | * Driver for the Texas Instruments DP83867 PHY |
3 | * | 4 | * |
4 | * Copyright (C) 2015 Texas Instruments Inc. | 5 | * Copyright (C) 2015 Texas Instruments Inc. |
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. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | */ | 6 | */ |
15 | 7 | ||
16 | #include <linux/ethtool.h> | 8 | #include <linux/ethtool.h> |
@@ -357,4 +349,4 @@ MODULE_DEVICE_TABLE(mdio, dp83867_tbl); | |||
357 | 349 | ||
358 | MODULE_DESCRIPTION("Texas Instruments DP83867 PHY driver"); | 350 | MODULE_DESCRIPTION("Texas Instruments DP83867 PHY driver"); |
359 | MODULE_AUTHOR("Dan Murphy <dmurphy@ti.com"); | 351 | MODULE_AUTHOR("Dan Murphy <dmurphy@ti.com"); |
360 | MODULE_LICENSE("GPL"); | 352 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/net/phy/mdio-bitbang.c b/drivers/net/phy/mdio-bitbang.c index 15352f987bdf..5136275c8e73 100644 --- a/drivers/net/phy/mdio-bitbang.c +++ b/drivers/net/phy/mdio-bitbang.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Bitbanged MDIO support. | 3 | * Bitbanged MDIO support. |
3 | * | 4 | * |
@@ -11,10 +12,6 @@ | |||
11 | * | 12 | * |
12 | * 2005 (c) MontaVista Software, Inc. | 13 | * 2005 (c) MontaVista Software, Inc. |
13 | * Vitaly Bordug <vbordug@ru.mvista.com> | 14 | * Vitaly Bordug <vbordug@ru.mvista.com> |
14 | * | ||
15 | * This file is licensed under the terms of the GNU General Public License | ||
16 | * version 2. This program is licensed "as is" without any warranty of any | ||
17 | * kind, whether express or implied. | ||
18 | */ | 15 | */ |
19 | 16 | ||
20 | #include <linux/module.h> | 17 | #include <linux/module.h> |
@@ -232,4 +229,4 @@ void free_mdio_bitbang(struct mii_bus *bus) | |||
232 | } | 229 | } |
233 | EXPORT_SYMBOL(free_mdio_bitbang); | 230 | EXPORT_SYMBOL(free_mdio_bitbang); |
234 | 231 | ||
235 | MODULE_LICENSE("GPL"); | 232 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c index ea9a0e339778..1b00235d7dc5 100644 --- a/drivers/net/phy/mdio-gpio.c +++ b/drivers/net/phy/mdio-gpio.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * GPIO based MDIO bitbang driver. | 3 | * GPIO based MDIO bitbang driver. |
3 | * Supports OpenFirmware. | 4 | * Supports OpenFirmware. |
@@ -14,10 +15,6 @@ | |||
14 | * | 15 | * |
15 | * 2005 (c) MontaVista Software, Inc. | 16 | * 2005 (c) MontaVista Software, Inc. |
16 | * Vitaly Bordug <vbordug@ru.mvista.com> | 17 | * Vitaly Bordug <vbordug@ru.mvista.com> |
17 | * | ||
18 | * This file is licensed under the terms of the GNU General Public License | ||
19 | * version 2. This program is licensed "as is" without any warranty of any | ||
20 | * kind, whether express or implied. | ||
21 | */ | 18 | */ |
22 | 19 | ||
23 | #include <linux/module.h> | 20 | #include <linux/module.h> |
@@ -216,5 +213,5 @@ module_platform_driver(mdio_gpio_driver); | |||
216 | 213 | ||
217 | MODULE_ALIAS("platform:mdio-gpio"); | 214 | MODULE_ALIAS("platform:mdio-gpio"); |
218 | MODULE_AUTHOR("Laurent Pinchart, Paulius Zaleckas"); | 215 | MODULE_AUTHOR("Laurent Pinchart, Paulius Zaleckas"); |
219 | MODULE_LICENSE("GPL"); | 216 | MODULE_LICENSE("GPL v2"); |
220 | MODULE_DESCRIPTION("Generic driver for MDIO bus emulation using GPIO"); | 217 | MODULE_DESCRIPTION("Generic driver for MDIO bus emulation using GPIO"); |
diff --git a/drivers/net/phy/mdio-moxart.c b/drivers/net/phy/mdio-moxart.c index 5bb56d126693..af3910fe8ec7 100644 --- a/drivers/net/phy/mdio-moxart.c +++ b/drivers/net/phy/mdio-moxart.c | |||
@@ -1,10 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* MOXA ART Ethernet (RTL8201CP) MDIO interface driver | 2 | /* MOXA ART Ethernet (RTL8201CP) MDIO interface driver |
2 | * | 3 | * |
3 | * Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com> | 4 | * Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com> |
4 | * | ||
5 | * This file is licensed under the terms of the GNU General Public | ||
6 | * License version 2. This program is licensed "as is" without any | ||
7 | * warranty of any kind, whether express or implied. | ||
8 | */ | 5 | */ |
9 | 6 | ||
10 | #include <linux/delay.h> | 7 | #include <linux/delay.h> |
@@ -190,4 +187,4 @@ module_platform_driver(moxart_mdio_driver); | |||
190 | 187 | ||
191 | MODULE_DESCRIPTION("MOXA ART MDIO interface driver"); | 188 | MODULE_DESCRIPTION("MOXA ART MDIO interface driver"); |
192 | MODULE_AUTHOR("Jonas Jensen <jonas.jensen@gmail.com>"); | 189 | MODULE_AUTHOR("Jonas Jensen <jonas.jensen@gmail.com>"); |
193 | MODULE_LICENSE("GPL"); | 190 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/net/phy/mdio-sun4i.c b/drivers/net/phy/mdio-sun4i.c index 6425ce04d3f9..20ffd8fb79ce 100644 --- a/drivers/net/phy/mdio-sun4i.c +++ b/drivers/net/phy/mdio-sun4i.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Allwinner EMAC MDIO interface driver | 3 | * Allwinner EMAC MDIO interface driver |
3 | * | 4 | * |
@@ -6,10 +7,6 @@ | |||
6 | * | 7 | * |
7 | * Based on the Linux driver provided by Allwinner: | 8 | * Based on the Linux driver provided by Allwinner: |
8 | * Copyright (C) 1997 Sten Wang | 9 | * Copyright (C) 1997 Sten Wang |
9 | * | ||
10 | * This file is licensed under the terms of the GNU General Public | ||
11 | * License version 2. This program is licensed "as is" without any | ||
12 | * warranty of any kind, whether express or implied. | ||
13 | */ | 10 | */ |
14 | 11 | ||
15 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
@@ -179,4 +176,4 @@ module_platform_driver(sun4i_mdio_driver); | |||
179 | 176 | ||
180 | MODULE_DESCRIPTION("Allwinner EMAC MDIO interface driver"); | 177 | MODULE_DESCRIPTION("Allwinner EMAC MDIO interface driver"); |
181 | MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com>"); | 178 | MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com>"); |
182 | MODULE_LICENSE("GPL"); | 179 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index e7becc7379d7..7d9910da5018 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c | |||
@@ -1,12 +1,9 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * phylink models the MAC to optional PHY connection, supporting | 3 | * phylink models the MAC to optional PHY connection, supporting |
3 | * technologies such as SFP cages where the PHY is hot-pluggable. | 4 | * technologies such as SFP cages where the PHY is hot-pluggable. |
4 | * | 5 | * |
5 | * Copyright (C) 2015 Russell King | 6 | * Copyright (C) 2015 Russell King |
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | 7 | */ |
11 | #include <linux/ethtool.h> | 8 | #include <linux/ethtool.h> |
12 | #include <linux/export.h> | 9 | #include <linux/export.h> |
@@ -1697,4 +1694,4 @@ void phylink_helper_basex_speed(struct phylink_link_state *state) | |||
1697 | } | 1694 | } |
1698 | EXPORT_SYMBOL_GPL(phylink_helper_basex_speed); | 1695 | EXPORT_SYMBOL_GPL(phylink_helper_basex_speed); |
1699 | 1696 | ||
1700 | MODULE_LICENSE("GPL"); | 1697 | MODULE_LICENSE("GPL v2"); |