summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArt Haas <ahaas@airmail.net>2003-02-26 16:45:45 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-02-26 16:45:45 -0800
commitc6ad60b96c45fbbe0c611bc0feaf2e10ed20c80c (patch)
tree8cf407c0f3641f357c654dad03bff68850fd2d7f
parentda3922ef42ddf1286226257e95fdf582c9687aaa (diff)
[PATCH] C99 initializers for drivers/mtd files
-rw-r--r--drivers/mtd/ftl.c4
-rw-r--r--drivers/mtd/mtdchar.c18
-rw-r--r--drivers/mtd/nftlcore.c4
3 files changed, 13 insertions, 13 deletions
diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c
index b79f92b9cb9e..0ffe4751e857 100644
--- a/drivers/mtd/ftl.c
+++ b/drivers/mtd/ftl.c
@@ -155,8 +155,8 @@ static void ftl_notify_remove(struct mtd_info *mtd);
void ftl_freepart(partition_t *part);
static struct mtd_notifier ftl_notifier = {
- add: ftl_notify_add,
- remove: ftl_notify_remove,
+ .add = ftl_notify_add,
+ .remove = ftl_notify_remove,
};
/* Partition state flags */
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index 81de629c020f..0e48d9c0e809 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -19,8 +19,8 @@ static void mtd_notify_add(struct mtd_info* mtd);
static void mtd_notify_remove(struct mtd_info* mtd);
static struct mtd_notifier notifier = {
- add: mtd_notify_add,
- remove: mtd_notify_remove,
+ .add = mtd_notify_add,
+ .remove = mtd_notify_remove,
};
#endif
@@ -445,13 +445,13 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
} /* memory_ioctl */
static struct file_operations mtd_fops = {
- owner: THIS_MODULE,
- llseek: mtd_lseek, /* lseek */
- read: mtd_read, /* read */
- write: mtd_write, /* write */
- ioctl: mtd_ioctl, /* ioctl */
- open: mtd_open, /* open */
- release: mtd_close, /* release */
+ .owner = THIS_MODULE,
+ .llseek = mtd_lseek, /* lseek */
+ .read = mtd_read, /* read */
+ .write = mtd_write, /* write */
+ .ioctl = mtd_ioctl, /* ioctl */
+ .open = mtd_open, /* open */
+ .release = mtd_close, /* release */
};
diff --git a/drivers/mtd/nftlcore.c b/drivers/mtd/nftlcore.c
index d980dfc8c1a4..b4d8d5599986 100644
--- a/drivers/mtd/nftlcore.c
+++ b/drivers/mtd/nftlcore.c
@@ -914,8 +914,8 @@ static struct block_device_operations nftl_fops =
****************************************************************************/
static struct mtd_notifier nftl_notifier = {
- add: NFTL_notify_add,
- remove: NFTL_notify_remove
+ .add = NFTL_notify_add,
+ .remove = NFTL_notify_remove
};
extern char nftlmountrev[];