diff options
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |