diff options
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | 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 ff37bf437a99..1d706eae3052 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c | |||
@@ -395,8 +395,7 @@ static int __init cosa_init(void) | |||
395 | goto out_chrdev; | 395 | goto out_chrdev; |
396 | } | 396 | } |
397 | for (i=0; i<nr_cards; i++) { | 397 | for (i=0; i<nr_cards; i++) { |
398 | class_device_create(cosa_class, NULL, MKDEV(cosa_major, i), | 398 | device_create(cosa_class, NULL, MKDEV(cosa_major, i), "cosa%d", i); |
399 | NULL, "cosa%d", i); | ||
400 | } | 399 | } |
401 | err = 0; | 400 | err = 0; |
402 | goto out; | 401 | goto out; |
@@ -415,7 +414,7 @@ static void __exit cosa_exit(void) | |||
415 | printk(KERN_INFO "Unloading the cosa module\n"); | 414 | printk(KERN_INFO "Unloading the cosa module\n"); |
416 | 415 | ||
417 | for (i=0; i<nr_cards; i++) | 416 | for (i=0; i<nr_cards; i++) |
418 | class_device_destroy(cosa_class, MKDEV(cosa_major, i)); | 417 | device_destroy(cosa_class, MKDEV(cosa_major, i)); |
419 | class_destroy(cosa_class); | 418 | class_destroy(cosa_class); |
420 | for (cosa=cosa_cards; nr_cards--; cosa++) { | 419 | for (cosa=cosa_cards; nr_cards--; cosa++) { |
421 | /* Clean up the per-channel data */ | 420 | /* Clean up the per-channel data */ |