swim3.c (82ffd0454bd9bd57780966d47bfd56d579dd4fb3) swim3.c (773008f6fe0544aa28140ced0504cefba17381aa)
1/*
2 * Driver for the SWIM3 (Super Woz Integrated Machine 3)
3 * floppy controller found on Power Macintoshes.
4 *
5 * Copyright (C) 1996 Paul Mackerras.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 1202 unchanged lines hidden (view full) ---

1211 rc = swim3_add_device(mdev, floppy_count);
1212 if (rc)
1213 goto out_cleanup_queue;
1214
1215 disk->major = FLOPPY_MAJOR;
1216 disk->first_minor = floppy_count;
1217 disk->fops = &floppy_fops;
1218 disk->private_data = fs;
1/*
2 * Driver for the SWIM3 (Super Woz Integrated Machine 3)
3 * floppy controller found on Power Macintoshes.
4 *
5 * Copyright (C) 1996 Paul Mackerras.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 1202 unchanged lines hidden (view full) ---

1211 rc = swim3_add_device(mdev, floppy_count);
1212 if (rc)
1213 goto out_cleanup_queue;
1214
1215 disk->major = FLOPPY_MAJOR;
1216 disk->first_minor = floppy_count;
1217 disk->fops = &floppy_fops;
1218 disk->private_data = fs;
1219 disk->events = DISK_EVENT_MEDIA_CHANGE;
1219 disk->flags |= GENHD_FL_REMOVABLE;
1220 sprintf(disk->disk_name, "fd%d", floppy_count);
1221 set_capacity(disk, 2880);
1222 add_disk(disk);
1223
1224 disks[floppy_count++] = disk;
1225 return 0;
1226

--- 54 unchanged lines hidden ---
1220 disk->flags |= GENHD_FL_REMOVABLE;
1221 sprintf(disk->disk_name, "fd%d", floppy_count);
1222 set_capacity(disk, 2880);
1223 add_disk(disk);
1224
1225 disks[floppy_count++] = disk;
1226 return 0;
1227

--- 54 unchanged lines hidden ---