patch-2.3.43 linux/drivers/sbus/char/flash.c
Next file: linux/drivers/sbus/char/jsflash.c
Previous file: linux/drivers/sbus/char/envctrl.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Thu Feb 10 12:16:38 2000
- Orig file:
v2.3.42/linux/drivers/sbus/char/flash.c
- Orig date:
Wed Dec 29 13:13:17 1999
diff -u --recursive --new-file v2.3.42/linux/drivers/sbus/char/flash.c linux/drivers/sbus/char/flash.c
@@ -1,4 +1,4 @@
-/* $Id: flash.c,v 1.15 1999/12/09 00:44:22 davem Exp $
+/* $Id: flash.c,v 1.17 2000/02/10 02:51:35 davem Exp $
* flash.c: Allow mmap access to the OBP Flash, for OBP updates.
*
* Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)
@@ -128,18 +128,14 @@
}
static struct file_operations flash_fops = {
- flash_llseek,
- flash_read,
- NULL, /* no write to the Flash, use mmap
- * and play flash dependent tricks.
- */
- NULL, /* readdir */
- NULL, /* poll */
- NULL, /* ioctl */
- flash_mmap,
- flash_open,
- NULL, /* flush */
- flash_release
+ /* no write to the Flash, use mmap
+ * and play flash dependent tricks.
+ */
+ llseek: flash_llseek,
+ read: flash_read,
+ mmap: flash_mmap,
+ open: flash_open,
+ release: flash_release,
};
static struct miscdevice flash_dev = { FLASH_MINOR, "flash", &flash_fops };
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)