amiflop.c (448cc2fb3a7b327823a9afd374808c37b8e6194f) | amiflop.c (1ebe2e5f9d68e94c524aba876f27b945669a7879) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/amiga/amiflop.c 4 * 5 * Copyright (C) 1993 Greg Harp 6 * Portions of this driver are based on code contributed by Brad Pepers 7 * 8 * revised 28.5.95 by Joerg Dorchain --- 1776 unchanged lines hidden (view full) --- 1785 disk = blk_mq_alloc_disk(&unit[drive].tag_set, NULL); 1786 if (IS_ERR(disk)) 1787 return PTR_ERR(disk); 1788 1789 disk->major = FLOPPY_MAJOR; 1790 disk->first_minor = drive + system; 1791 disk->minors = 1; 1792 disk->fops = &floppy_fops; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/amiga/amiflop.c 4 * 5 * Copyright (C) 1993 Greg Harp 6 * Portions of this driver are based on code contributed by Brad Pepers 7 * 8 * revised 28.5.95 by Joerg Dorchain --- 1776 unchanged lines hidden (view full) --- 1785 disk = blk_mq_alloc_disk(&unit[drive].tag_set, NULL); 1786 if (IS_ERR(disk)) 1787 return PTR_ERR(disk); 1788 1789 disk->major = FLOPPY_MAJOR; 1790 disk->first_minor = drive + system; 1791 disk->minors = 1; 1792 disk->fops = &floppy_fops; |
1793 disk->flags |= GENHD_FL_NO_PART; |
|
1793 disk->events = DISK_EVENT_MEDIA_CHANGE; 1794 if (system) 1795 sprintf(disk->disk_name, "fd%d_msdos", drive); 1796 else 1797 sprintf(disk->disk_name, "fd%d", drive); 1798 disk->private_data = &unit[drive]; 1799 set_capacity(disk, 880 * 2); 1800 --- 164 unchanged lines hidden --- | 1794 disk->events = DISK_EVENT_MEDIA_CHANGE; 1795 if (system) 1796 sprintf(disk->disk_name, "fd%d_msdos", drive); 1797 else 1798 sprintf(disk->disk_name, "fd%d", drive); 1799 disk->private_data = &unit[drive]; 1800 set_capacity(disk, 880 * 2); 1801 --- 164 unchanged lines hidden --- |