* [PATCH] mark swim3 floppy controller as removable device
@ 2004-07-28 10:25 Olaf Hering
0 siblings, 0 replies; only message in thread
From: Olaf Hering @ 2004-07-28 10:25 UTC (permalink / raw)
To: Andrew Morton, Benjamin Herrenschmidt; +Cc: linux-kernel, linuxppc-dev
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>
diff -purN linux-2.6.8-rc2-bk6.orig/drivers/block/swim3.c linux-2.6.8-rc2-bk6/drivers/block/swim3.c
--- linux-2.6.8-rc2-bk6.orig/drivers/block/swim3.c 2004-06-16 05:19:13.000000000 +0000
+++ linux-2.6.8-rc2-bk6/drivers/block/swim3.c 2004-07-28 10:11:37.236364106 +0000
@@ -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);
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-28 10:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-28 10:25 [PATCH] mark swim3 floppy controller as removable device Olaf Hering
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.