diff options
Diffstat (limited to 'drivers/block/amiflop.c')
-rw-r--r-- | drivers/block/amiflop.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index 3e2530d61762..b6e290956214 100644 --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c | |||
@@ -1654,12 +1654,6 @@ static struct block_device_operations floppy_fops = { | |||
1654 | .media_changed = amiga_floppy_change, | 1654 | .media_changed = amiga_floppy_change, |
1655 | }; | 1655 | }; |
1656 | 1656 | ||
1657 | void __init amiga_floppy_setup (char *str, int *ints) | ||
1658 | { | ||
1659 | printk (KERN_INFO "amiflop: Setting default df0 to %x\n", ints[1]); | ||
1660 | fd_def_df0 = ints[1]; | ||
1661 | } | ||
1662 | |||
1663 | static int __init fd_probe_drives(void) | 1657 | static int __init fd_probe_drives(void) |
1664 | { | 1658 | { |
1665 | int drive,drives,nomem; | 1659 | int drive,drives,nomem; |
@@ -1845,4 +1839,18 @@ void cleanup_module(void) | |||
1845 | unregister_blkdev(FLOPPY_MAJOR, "fd"); | 1839 | unregister_blkdev(FLOPPY_MAJOR, "fd"); |
1846 | } | 1840 | } |
1847 | #endif | 1841 | #endif |
1842 | |||
1843 | #else | ||
1844 | static int __init amiga_floppy_setup (char *str) | ||
1845 | { | ||
1846 | int n; | ||
1847 | if (!MACH_IS_AMIGA) | ||
1848 | return 0; | ||
1849 | if (!get_option(&str, &n)) | ||
1850 | return 0; | ||
1851 | printk (KERN_INFO "amiflop: Setting default df0 to %x\n", n); | ||
1852 | fd_def_df0 = n; | ||
1853 | } | ||
1854 | |||
1855 | __setup("floppy=", amiga_floppy_setup); | ||
1848 | #endif | 1856 | #endif |