hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/net/phy/dp83848.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Driver for the Texas Instruments DP83848 PHY
34 *
45 * 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.
146 */
157
168 #include <linux/module.h>
....@@ -76,12 +68,7 @@
7668
7769 static int dp83848_config_init(struct phy_device *phydev)
7870 {
79
- int err;
8071 int val;
81
-
82
- err = genphy_config_init(phydev);
83
- if (err < 0)
84
- return err;
8572
8673 /* DP83620 always reports Auto Negotiation Ability on BMSR. Instead,
8774 * we check initial value of BMCR Auto negotiation enable bit
....@@ -107,8 +94,7 @@
10794 .phy_id = _id, \
10895 .phy_id_mask = 0xfffffff0, \
10996 .name = _name, \
110
- .features = PHY_BASIC_FEATURES, \
111
- .flags = PHY_HAS_INTERRUPT, \
97
+ /* PHY_BASIC_FEATURES */ \
11298 \
11399 .soft_reset = genphy_soft_reset, \
114100 .config_init = _config_init, \
....@@ -122,16 +108,16 @@
122108
123109 static struct phy_driver dp83848_driver[] = {
124110 DP83848_PHY_DRIVER(TI_DP83848C_PHY_ID, "TI DP83848C 10/100 Mbps PHY",
125
- genphy_config_init),
111
+ NULL),
126112 DP83848_PHY_DRIVER(NS_DP83848C_PHY_ID, "NS DP83848C 10/100 Mbps PHY",
127
- genphy_config_init),
113
+ NULL),
128114 DP83848_PHY_DRIVER(TI_DP83620_PHY_ID, "TI DP83620 10/100 Mbps PHY",
129115 dp83848_config_init),
130116 DP83848_PHY_DRIVER(TLK10X_PHY_ID, "TI TLK10X 10/100 Mbps PHY",
131
- genphy_config_init),
117
+ NULL),
132118 };
133119 module_phy_driver(dp83848_driver);
134120
135121 MODULE_DESCRIPTION("Texas Instruments DP83848 PHY driver");
136122 MODULE_AUTHOR("Andrew F. Davis <afd@ti.com>");
137
-MODULE_LICENSE("GPL");
123
+MODULE_LICENSE("GPL v2");