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: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user