net: phy: dp83848: Fix sysfs naming collision warning
authorAndrew F. Davis <afd@ti.com>
Thu, 18 Feb 2016 00:10:00 +0000 (18:10 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 20:53:10 +0000 (15:53 -0500)
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 <ying.huang@linux.intel.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83848.c

index 556904f572d6258f5c4fe9c4c7ba184e28ba2ff8..03d54c4adc881fc2d65de40a399096687c5b4444 100644 (file)
@@ -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);