diff options
Diffstat (limited to 'drivers/char/stallion.c')
-rw-r--r-- | drivers/char/stallion.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index 4a80b2f864e0..45758d5b56ef 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c | |||
@@ -4778,9 +4778,8 @@ static int __init stallion_module_init(void) | |||
4778 | if (IS_ERR(stallion_class)) | 4778 | if (IS_ERR(stallion_class)) |
4779 | printk("STALLION: failed to create class\n"); | 4779 | printk("STALLION: failed to create class\n"); |
4780 | for (i = 0; i < 4; i++) | 4780 | for (i = 0; i < 4; i++) |
4781 | class_device_create(stallion_class, NULL, | 4781 | device_create(stallion_class, NULL, MKDEV(STL_SIOMEMMAJOR, i), |
4782 | MKDEV(STL_SIOMEMMAJOR, i), NULL, | 4782 | "staliomem%d", i); |
4783 | "staliomem%d", i); | ||
4784 | 4783 | ||
4785 | return 0; | 4784 | return 0; |
4786 | err_unrtty: | 4785 | err_unrtty: |
@@ -4816,7 +4815,7 @@ static void __exit stallion_module_exit(void) | |||
4816 | } | 4815 | } |
4817 | 4816 | ||
4818 | for (i = 0; i < 4; i++) | 4817 | for (i = 0; i < 4; i++) |
4819 | class_device_destroy(stallion_class, MKDEV(STL_SIOMEMMAJOR, i)); | 4818 | device_destroy(stallion_class, MKDEV(STL_SIOMEMMAJOR, i)); |
4820 | unregister_chrdev(STL_SIOMEMMAJOR, "staliomem"); | 4819 | unregister_chrdev(STL_SIOMEMMAJOR, "staliomem"); |
4821 | class_destroy(stallion_class); | 4820 | class_destroy(stallion_class); |
4822 | 4821 | ||