]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] mark swim3 floppy controller as removable device
authorOlaf Hering <olh@suse.de>
Wed, 28 Jul 2004 16:13:40 +0000 (09:13 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 28 Jul 2004 16:13:40 +0000 (09:13 -0700)
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: Olaf Hering <olh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/swim3.c

index 73554d3fe422aeba8f1f89aefb3994ec3bfb86b8..ca17d8373b3035f683e753d81815a0ca9111db1a 100644 (file)
@@ -1058,6 +1058,7 @@ int swim3_init(void)
                disk->fops = &floppy_fops;
                disk->private_data = &floppy_states[i];
                disk->queue = swim3_queue;
+               disk->flags |= GENHD_FL_REMOVABLE;
                sprintf(disk->disk_name, "fd%d", i);
                sprintf(disk->devfs_name, "floppy/%d", i);
                set_capacity(disk, 2880);