[PATCH 8/22] Remove sync interface
Jörn Engel
joern at wohnheim.fh-wedel.de
Tue Dec 21 08:49:01 EST 2004
The sync interface was unused. Not it's gone.
Signed-off-by: Jörn Engel <joern at wohnheim.fh-wedel.de>
---
blockmtd.c | 13 -------------
1 files changed, 13 deletions(-)
--- linux-2.6.9cow/drivers/mtd/devices/blockmtd.c~blockmtd_sync 2004-12-20 19:10:28.000000000 +0100
+++ linux-2.6.9cow/drivers/mtd/devices/blockmtd.c 2004-12-20 21:38:46.000000000 +0100
@@ -55,14 +55,11 @@
/* Static info about the MTD, used in cleanup_module */
static LIST_HEAD(blkmtd_device_list);
-static void blkmtd_sync(struct mtd_info *mtd);
-
#define MAX_DEVICES 4
/* Module parameters passed by insmod/modprobe */
char *device[MAX_DEVICES]; /* the block device to use */
int erasesz[MAX_DEVICES]; /* optional default erase size */
-int sync;
MODULE_LICENSE("GPL");
@@ -72,8 +69,6 @@
MODULE_PARM_DESC(device, "block device to use");
MODULE_PARM(erasesz, "1-4i");
MODULE_PARM_DESC(erasesz, "optional erase size to use in KiB. eg 4=4KiB.");
-MODULE_PARM(sync, "i");
-MODULE_PARM_DESC(sync, "1=Synchronous writes");
#define PAGE_READAHEAD 64
@@ -551,16 +546,8 @@
}
-static int __init param_blkmtd_sync(char *str)
-{
- if (str[0] == '1')
- sync = 1;
- return 1;
-}
-
__setup("blkmtd_device=", param_blkmtd_device);
__setup("blkmtd_erasesz=", param_blkmtd_erasesz);
-__setup("blkmtd_sync=", param_blkmtd_sync);
#endif
More information about the linux-mtd
mailing list