Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e05d6c4 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

device create: net: convert device_create_drvdata to device_create



Now that device_create() has been audited, rename things back to the
original call to be sane.

Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a9b12619
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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:
+2 −2
Original line number Diff line number Diff line
@@ -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;

+3 −3
Original line number Diff line number Diff line
@@ -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,
		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;