Commit 2093d2b7 authored by Olaf Hering's avatar Olaf Hering Committed by Linus Torvalds

[PATCH] mark swim3 floppy controller as removable device

Mark the mac floppy controller driver as removable media.  This prevents an
entry in /proc/partitions.  Several tools will not try to access the floppy
anymore with this change.
Signed-off-by: default avatarOlaf Hering <olh@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent af3312a8
...@@ -1058,6 +1058,7 @@ int swim3_init(void) ...@@ -1058,6 +1058,7 @@ int swim3_init(void)
disk->fops = &floppy_fops; disk->fops = &floppy_fops;
disk->private_data = &floppy_states[i]; disk->private_data = &floppy_states[i];
disk->queue = swim3_queue; disk->queue = swim3_queue;
disk->flags |= GENHD_FL_REMOVABLE;
sprintf(disk->disk_name, "fd%d", i); sprintf(disk->disk_name, "fd%d", i);
sprintf(disk->devfs_name, "floppy/%d", i); sprintf(disk->devfs_name, "floppy/%d", i);
set_capacity(disk, 2880); set_capacity(disk, 2880);
......
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