Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115116
b: refs/heads/master
c: 6e05d6c
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Oct 16, 2008
1 parent c0b3d1a commit 97a3dfa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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: a9b12619f7b6f19c871437ec24a088787a04b1de
refs/heads/master: 6e05d6c4676408b46b01eef29fd472b89ba1f98a
4 changes: 2 additions & 2 deletions trunk/drivers/net/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,8 +866,8 @@ static int __init ppp_init(void)
err = PTR_ERR(ppp_class);
goto out_chrdev;
}
device_create_drvdata(ppp_class, NULL, MKDEV(PPP_MAJOR, 0),
NULL, "ppp");
device_create(ppp_class, NULL, MKDEV(PPP_MAJOR, 0), NULL,
"ppp");
}

out:
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wan/cosa.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ static int __init cosa_init(void)
goto out_chrdev;
}
for (i = 0; i < nr_cards; i++)
device_create_drvdata(cosa_class, NULL, MKDEV(cosa_major, i),
NULL, "cosa%d", i);
device_create(cosa_class, NULL, MKDEV(cosa_major, i), NULL,
"cosa%d", i);
err = 0;
goto out;

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,11 +533,11 @@ static int __init init_mac80211_hwsim(void)
data = hw->priv;
data->hw = hw;

data->dev = device_create_drvdata(hwsim_class, NULL, 0, hw,
"hwsim%d", i);
data->dev = device_create(hwsim_class, NULL, 0, hw,
"hwsim%d", i);
if (IS_ERR(data->dev)) {
printk(KERN_DEBUG
"mac80211_hwsim: device_create_drvdata "
"mac80211_hwsim: device_create "
"failed (%ld)\n", PTR_ERR(data->dev));
err = -ENOMEM;
goto failed_drvdata;
Expand Down

0 comments on commit 97a3dfa

Please sign in to comment.