Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103159
b: refs/heads/master
c: e800f17
h: refs/heads/master
i:
  103157: 398d50b
  103155: 288a0e3
  103151: 410216c
v: v3
  • Loading branch information
Stephen Rothwell authored and John W. Linville committed Jun 26, 2008
1 parent 1b30cdd commit 1a0ba53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b662348662f9661f9259c7186c1bdb65620045f1
refs/heads/master: e800f17c6ffe8b0410d8cf060ab204b93e9c73ab
7 changes: 4 additions & 3 deletions trunk/drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,15 +430,16 @@ static int __init init_mac80211_hwsim(void)
hwsim_radios[i] = hw;

data = hw->priv;
data->dev = device_create(hwsim_class, NULL, 0, "hwsim%d", i);
data->dev = device_create_drvdata(hwsim_class, NULL, 0, hw,
"hwsim%d", i);
if (IS_ERR(data->dev)) {
printk(KERN_DEBUG "mac80211_hwsim: device_create "
printk(KERN_DEBUG
"mac80211_hwsim: device_create_drvdata "
"failed (%ld)\n", PTR_ERR(data->dev));
err = -ENOMEM;
goto failed;
}
data->dev->driver = &mac80211_hwsim_driver;
dev_set_drvdata(data->dev, hw);

SET_IEEE80211_DEV(hw, data->dev);
addr[3] = i >> 8;
Expand Down

0 comments on commit 1a0ba53

Please sign in to comment.