Commit 02ff82ca authored by Tony Jones's avatar Tony Jones Committed by Greg Kroah-Hartman
Browse files

cosa: Convert from class_device to device for cosa sync driver

struct class_device is going away, this converts the code to use struct
device instead.
Signed-off-by: default avatarTony Jones <>
Cc: Jan "Yenya" Kasprzak <>
Cc: Kay Sievers <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 7dd817d0
......@@ -395,8 +395,7 @@ static int __init cosa_init(void)
goto out_chrdev;
for (i=0; i<nr_cards; i++) {
class_device_create(cosa_class, NULL, MKDEV(cosa_major, i),
NULL, "cosa%d", i);
device_create(cosa_class, NULL, MKDEV(cosa_major, i), "cosa%d", i);
err = 0;
goto out;
......@@ -415,7 +414,7 @@ static void __exit cosa_exit(void)
printk(KERN_INFO "Unloading the cosa module\n");
for (i=0; i<nr_cards; i++)
class_device_destroy(cosa_class, MKDEV(cosa_major, i));
device_destroy(cosa_class, MKDEV(cosa_major, i));
for (cosa=cosa_cards; nr_cards--; cosa++) {
/* Clean up the per-channel data */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment