Commit a2610cd5 authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] devfs: aztcd

parent f0d80e91
...@@ -180,7 +180,6 @@ ...@@ -180,7 +180,6 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/major.h> #include <linux/major.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -1922,12 +1921,9 @@ static int __init aztcd_init(void) ...@@ -1922,12 +1921,9 @@ static int __init aztcd_init(void)
azt_disk->first_minor = 0; azt_disk->first_minor = 0;
azt_disk->fops = &azt_fops; azt_disk->fops = &azt_fops;
sprintf(azt_disk->disk_name, "aztcd"); sprintf(azt_disk->disk_name, "aztcd");
sprintf(azt_disk->devfs_name, "aztcd");
azt_disk->queue = &azt_queue; azt_disk->queue = &azt_queue;
add_disk(azt_disk); add_disk(azt_disk);
devfs_register(NULL, "aztcd", DEVFS_FL_DEFAULT,
azt_disk->major, azt_disk->first_minor,
S_IFBLK | S_IRUGO | S_IWUGO, azt_disk->fops, NULL);
azt_invalidate_buffers(); azt_invalidate_buffers();
aztPresent = 1; aztPresent = 1;
aztCloseDoor(); aztCloseDoor();
...@@ -1946,7 +1942,6 @@ static int __init aztcd_init(void) ...@@ -1946,7 +1942,6 @@ static int __init aztcd_init(void)
static void __exit aztcd_exit(void) static void __exit aztcd_exit(void)
{ {
devfs_remove("aztcd");
del_gendisk(azt_disk); del_gendisk(azt_disk);
put_disk(azt_disk); put_disk(azt_disk);
if ((unregister_blkdev(MAJOR_NR, "aztcd") == -EINVAL)) { if ((unregister_blkdev(MAJOR_NR, "aztcd") == -EINVAL)) {
......
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