net: phy: dp83848: Fix sysfs naming collision warning
Subsystems (3)
PATCH 1/1 net: phy: dp83848: Fix sysfs naming collision warning
Files in sysfs are created using the name from the phy_driver struct, when two names are the same we may get a duplicate filename warning, fix this.
Reported-by kernel test robot <[email protected]>
Signed-off-by Andrew F. Davis <[email protected]>
--- drivers/net/phy/dp83848.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/dp83848.c +1 -1
@@ -103,7 +103,7 @@ MODULE_DEVICE_TABLE(mdio, dp83848_tbl);static struct phy_driver dp83848_driver[] = {DP83848_PHY_DRIVER (TI_DP83848C_PHY_ID ,"TI DP83848C 10/100 Mbps PHY" ), -DP83848_PHY_DRIVER (NS_DP83848C_PHY_ID ,"TI DP83848C 10/100 Mbps PHY" ), +DP83848_PHY_DRIVER (NS_DP83848C_PHY_ID ,"NS DP83848C 10/100 Mbps PHY" ),DP83848_PHY_DRIVER (TLK10X_PHY_ID ,"TI TLK10X 10/100 Mbps PHY" ), };module_phy_driver (dp83848_driver);
Signature · 1 line
2.7.1
From: "Andrew F. Davis" <[email protected]>
Date: Wed, 17 Feb 2016 18:10:00 -0600
Quoted 6 lines
Files in sysfs are created using the name from the
phy_driverstruct, when two names are the same we may get a duplicate filename warning, fix this.Reported-by kernel test robot <[email protected]>Signed-off-by Andrew F. Davis <[email protected]>
Applied, thanks.