diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/phy_device.c | 8 | ||||
-rw-r--r-- | drivers/net/ppp_generic.c | 4 | ||||
-rw-r--r-- | drivers/net/wan/cosa.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 6 |
4 files changed, 8 insertions, 14 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index f11e900b437b..e11b03b2b25a 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c | |||
@@ -309,11 +309,6 @@ void phy_disconnect(struct phy_device *phydev) | |||
309 | } | 309 | } |
310 | EXPORT_SYMBOL(phy_disconnect); | 310 | EXPORT_SYMBOL(phy_disconnect); |
311 | 311 | ||
312 | static int phy_compare_id(struct device *dev, void *data) | ||
313 | { | ||
314 | return strcmp((char *)data, dev->bus_id) ? 0 : 1; | ||
315 | } | ||
316 | |||
317 | /** | 312 | /** |
318 | * phy_attach - attach a network device to a particular PHY device | 313 | * phy_attach - attach a network device to a particular PHY device |
319 | * @dev: network device to attach | 314 | * @dev: network device to attach |
@@ -337,8 +332,7 @@ struct phy_device *phy_attach(struct net_device *dev, | |||
337 | 332 | ||
338 | /* Search the list of PHY devices on the mdio bus for the | 333 | /* Search the list of PHY devices on the mdio bus for the |
339 | * PHY with the requested name */ | 334 | * PHY with the requested name */ |
340 | d = bus_find_device(bus, NULL, (void *)bus_id, phy_compare_id); | 335 | d = bus_find_device_by_name(bus, NULL, bus_id); |
341 | |||
342 | if (d) { | 336 | if (d) { |
343 | phydev = to_phy_device(d); | 337 | phydev = to_phy_device(d); |
344 | } else { | 338 | } else { |
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 94818ee3cef5..7e857e938adb 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
@@ -866,8 +866,8 @@ static int __init ppp_init(void) | |||
866 | err = PTR_ERR(ppp_class); | 866 | err = PTR_ERR(ppp_class); |
867 | goto out_chrdev; | 867 | goto out_chrdev; |
868 | } | 868 | } |
869 | device_create_drvdata(ppp_class, NULL, MKDEV(PPP_MAJOR, 0), | 869 | device_create(ppp_class, NULL, MKDEV(PPP_MAJOR, 0), NULL, |
870 | NULL, "ppp"); | 870 | "ppp"); |
871 | } | 871 | } |
872 | 872 | ||
873 | out: | 873 | out: |
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index f14051556c87..7f97f8d08c39 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c | |||
@@ -388,8 +388,8 @@ static int __init cosa_init(void) | |||
388 | goto out_chrdev; | 388 | goto out_chrdev; |
389 | } | 389 | } |
390 | for (i = 0; i < nr_cards; i++) | 390 | for (i = 0; i < nr_cards; i++) |
391 | device_create_drvdata(cosa_class, NULL, MKDEV(cosa_major, i), | 391 | device_create(cosa_class, NULL, MKDEV(cosa_major, i), NULL, |
392 | NULL, "cosa%d", i); | 392 | "cosa%d", i); |
393 | err = 0; | 393 | err = 0; |
394 | goto out; | 394 | goto out; |
395 | 395 | ||
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index c9e4a435b2fc..1a019e98dac3 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -533,11 +533,11 @@ static int __init init_mac80211_hwsim(void) | |||
533 | data = hw->priv; | 533 | data = hw->priv; |
534 | data->hw = hw; | 534 | data->hw = hw; |
535 | 535 | ||
536 | data->dev = device_create_drvdata(hwsim_class, NULL, 0, hw, | 536 | data->dev = device_create(hwsim_class, NULL, 0, hw, |
537 | "hwsim%d", i); | 537 | "hwsim%d", i); |
538 | if (IS_ERR(data->dev)) { | 538 | if (IS_ERR(data->dev)) { |
539 | printk(KERN_DEBUG | 539 | printk(KERN_DEBUG |
540 | "mac80211_hwsim: device_create_drvdata " | 540 | "mac80211_hwsim: device_create " |
541 | "failed (%ld)\n", PTR_ERR(data->dev)); | 541 | "failed (%ld)\n", PTR_ERR(data->dev)); |
542 | err = -ENOMEM; | 542 | err = -ENOMEM; |
543 | goto failed_drvdata; | 543 | goto failed_drvdata; |