diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:06:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:09:05 -0500 |
commit | 639074354bb371feb2dde409b2ce05d56afef02b (patch) | |
tree | 2524111d2bc4531e3cbd280f1b02d656b41c41d4 /drivers | |
parent | 0c79358b874af31430cf8d26540ae7b8713505f6 (diff) |
[PATCH] m68k: kill mach_floppy_setup, convert to proper __setup() in drivers
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/amiflop.c | 20 | ||||
-rw-r--r-- | drivers/block/ataflop.c | 18 |
2 files changed, 28 insertions, 10 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 |
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c index 69c58ee7b2b6..f8ce235ccfc3 100644 --- a/drivers/block/ataflop.c +++ b/drivers/block/ataflop.c | |||
@@ -1951,14 +1951,20 @@ Enomem: | |||
1951 | return -ENOMEM; | 1951 | return -ENOMEM; |
1952 | } | 1952 | } |
1953 | 1953 | ||
1954 | 1954 | #ifndef MODULE | |
1955 | void __init atari_floppy_setup( char *str, int *ints ) | 1955 | static int __init atari_floppy_setup(char *str) |
1956 | { | 1956 | { |
1957 | int ints[3 + FD_MAX_UNITS]; | ||
1957 | int i; | 1958 | int i; |
1959 | |||
1960 | if (!MACH_IS_ATARI) | ||
1961 | return 0; | ||
1962 | |||
1963 | str = get_options(str, 3 + FD_MAX_UNITS, ints); | ||
1958 | 1964 | ||
1959 | if (ints[0] < 1) { | 1965 | if (ints[0] < 1) { |
1960 | printk(KERN_ERR "ataflop_setup: no arguments!\n" ); | 1966 | printk(KERN_ERR "ataflop_setup: no arguments!\n" ); |
1961 | return; | 1967 | return 0; |
1962 | } | 1968 | } |
1963 | else if (ints[0] > 2+FD_MAX_UNITS) { | 1969 | else if (ints[0] > 2+FD_MAX_UNITS) { |
1964 | printk(KERN_ERR "ataflop_setup: too many arguments\n" ); | 1970 | printk(KERN_ERR "ataflop_setup: too many arguments\n" ); |
@@ -1978,9 +1984,13 @@ void __init atari_floppy_setup( char *str, int *ints ) | |||
1978 | else | 1984 | else |
1979 | UserSteprate[i-3] = ints[i]; | 1985 | UserSteprate[i-3] = ints[i]; |
1980 | } | 1986 | } |
1987 | return 1; | ||
1981 | } | 1988 | } |
1982 | 1989 | ||
1983 | static void atari_floppy_exit(void) | 1990 | __setup("floppy=", atari_floppy_setup); |
1991 | #endif | ||
1992 | |||
1993 | static void __exit atari_floppy_exit(void) | ||
1984 | { | 1994 | { |
1985 | int i; | 1995 | int i; |
1986 | blk_unregister_region(MKDEV(FLOPPY_MAJOR, 0), 256); | 1996 | blk_unregister_region(MKDEV(FLOPPY_MAJOR, 0), 256); |