.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for the Texas Instruments DP83848 PHY |
---|
3 | 4 | * |
---|
4 | 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 | 8 | #include <linux/module.h> |
---|
.. | .. |
---|
76 | 68 | |
---|
77 | 69 | static int dp83848_config_init(struct phy_device *phydev) |
---|
78 | 70 | { |
---|
79 | | - int err; |
---|
80 | 71 | int val; |
---|
81 | | - |
---|
82 | | - err = genphy_config_init(phydev); |
---|
83 | | - if (err < 0) |
---|
84 | | - return err; |
---|
85 | 72 | |
---|
86 | 73 | /* DP83620 always reports Auto Negotiation Ability on BMSR. Instead, |
---|
87 | 74 | * we check initial value of BMCR Auto negotiation enable bit |
---|
.. | .. |
---|
107 | 94 | .phy_id = _id, \ |
---|
108 | 95 | .phy_id_mask = 0xfffffff0, \ |
---|
109 | 96 | .name = _name, \ |
---|
110 | | - .features = PHY_BASIC_FEATURES, \ |
---|
111 | | - .flags = PHY_HAS_INTERRUPT, \ |
---|
| 97 | + /* PHY_BASIC_FEATURES */ \ |
---|
112 | 98 | \ |
---|
113 | 99 | .soft_reset = genphy_soft_reset, \ |
---|
114 | 100 | .config_init = _config_init, \ |
---|
.. | .. |
---|
122 | 108 | |
---|
123 | 109 | static struct phy_driver dp83848_driver[] = { |
---|
124 | 110 | DP83848_PHY_DRIVER(TI_DP83848C_PHY_ID, "TI DP83848C 10/100 Mbps PHY", |
---|
125 | | - genphy_config_init), |
---|
| 111 | + NULL), |
---|
126 | 112 | DP83848_PHY_DRIVER(NS_DP83848C_PHY_ID, "NS DP83848C 10/100 Mbps PHY", |
---|
127 | | - genphy_config_init), |
---|
| 113 | + NULL), |
---|
128 | 114 | DP83848_PHY_DRIVER(TI_DP83620_PHY_ID, "TI DP83620 10/100 Mbps PHY", |
---|
129 | 115 | dp83848_config_init), |
---|
130 | 116 | DP83848_PHY_DRIVER(TLK10X_PHY_ID, "TI TLK10X 10/100 Mbps PHY", |
---|
131 | | - genphy_config_init), |
---|
| 117 | + NULL), |
---|
132 | 118 | }; |
---|
133 | 119 | module_phy_driver(dp83848_driver); |
---|
134 | 120 | |
---|
135 | 121 | MODULE_DESCRIPTION("Texas Instruments DP83848 PHY driver"); |
---|
136 | 122 | MODULE_AUTHOR("Andrew F. Davis <afd@ti.com>"); |
---|
137 | | -MODULE_LICENSE("GPL"); |
---|
| 123 | +MODULE_LICENSE("GPL v2"); |
---|