Commit:     02ff82cac7ee7351d2649c4a3568f12e4e0fe534
Parent:     7dd817d083b6fc103b9ea4f2b4f4a1c6a09e29a0
Author:     Tony Jones <[EMAIL PROTECTED]>
AuthorDate: Tue Sep 25 02:03:03 2007 +0200
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Thu Jan 24 20:40:07 2008 -0800

    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: Tony Jones <[EMAIL PROTECTED]>
    Cc: Jan "Yenya" Kasprzak <[EMAIL PROTECTED]>
    Cc: Kay Sievers <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/net/wan/cosa.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c
index ff37bf4..1d706ea 100644
--- a/drivers/net/wan/cosa.c
+++ b/drivers/net/wan/cosa.c
@@ -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", 
        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 */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to