patch-2.4.0-test5 linux/drivers/acorn/block/fd1772.c
Next file: linux/drivers/acorn/char/Makefile
Previous file: linux/arch/sparc64/solaris/socksys.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Jul 18 22:43:26 2000
- Orig file:
v2.4.0-test4/linux/drivers/acorn/block/fd1772.c
- Orig date:
Mon Jul 10 16:47:21 2000
diff -u --recursive --new-file v2.4.0-test4/linux/drivers/acorn/block/fd1772.c linux/drivers/acorn/block/fd1772.c
@@ -1566,6 +1566,7 @@
static struct block_device_operations floppy_fops =
{
+ owner: THIS_MODULE,
open: floppy_open,
release: floppy_release,
ioctl: fd_ioctl,
@@ -1577,6 +1578,9 @@
int fd1772_init(void)
{
int i;
+
+ if (!machine_is_arc())
+ return 0;
if (register_blkdev(MAJOR_NR, "fd", &floppy_fops)) {
printk("Unable to get major %d for floppy\n", MAJOR_NR);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)