]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wan/cosa.c
device create: net: convert device_create to device_create_drvdata
[linux-2.6-omap-h63xx.git] / drivers / net / wan / cosa.c
index 5827324e9d9f94a2abde26a450c1b4be90c941cf..f7d3349dc3ec8ffcc35707287e4a3127176d9fd5 100644 (file)
@@ -397,9 +397,9 @@ static int __init cosa_init(void)
                err = PTR_ERR(cosa_class);
                goto out_chrdev;
        }
-       for (i=0; i<nr_cards; i++) {
-               device_create(cosa_class, NULL, MKDEV(cosa_major, i), "cosa%d", i);
-       }
+       for (i = 0; i < nr_cards; i++)
+               device_create_drvdata(cosa_class, NULL, MKDEV(cosa_major, i),
+                                     NULL, "cosa%d", i);
        err = 0;
        goto out;