diff options
| author | Olaf Hering <olh@suse.de> | 2004-07-28 09:13:40 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-28 09:13:40 -0700 |
| commit | 2093d2b74d448f7802cee149c487c3da69c4c418 (patch) | |
| tree | c079f6b1dfaeca5238625e08af47357dce31f212 | |
| parent | af3312a8c62796b26c47e0ff470b64d9c27c2673 (diff) | |
[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 <olh@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | drivers/block/swim3.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index 73554d3fe422..ca17d8373b30 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); |
