From 2093d2b74d448f7802cee149c487c3da69c4c418 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 28 Jul 2004 09:13:40 -0700 Subject: [PATCH] [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: Olaf Hering Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/block/swim3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index 73554d3fe422a..ca17d8373b303 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c @@ -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); -- 2.53.0