Commit c6ad60b9 authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 initializers for drivers/mtd files

parent da3922ef
...@@ -155,8 +155,8 @@ static void ftl_notify_remove(struct mtd_info *mtd); ...@@ -155,8 +155,8 @@ static void ftl_notify_remove(struct mtd_info *mtd);
void ftl_freepart(partition_t *part); void ftl_freepart(partition_t *part);
static struct mtd_notifier ftl_notifier = { static struct mtd_notifier ftl_notifier = {
add: ftl_notify_add, .add = ftl_notify_add,
remove: ftl_notify_remove, .remove = ftl_notify_remove,
}; };
/* Partition state flags */ /* Partition state flags */
......
...@@ -19,8 +19,8 @@ static void mtd_notify_add(struct mtd_info* mtd); ...@@ -19,8 +19,8 @@ static void mtd_notify_add(struct mtd_info* mtd);
static void mtd_notify_remove(struct mtd_info* mtd); static void mtd_notify_remove(struct mtd_info* mtd);
static struct mtd_notifier notifier = { static struct mtd_notifier notifier = {
add: mtd_notify_add, .add = mtd_notify_add,
remove: mtd_notify_remove, .remove = mtd_notify_remove,
}; };
#endif #endif
...@@ -445,13 +445,13 @@ static int mtd_ioctl(struct inode *inode, struct file *file, ...@@ -445,13 +445,13 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
} /* memory_ioctl */ } /* memory_ioctl */
static struct file_operations mtd_fops = { static struct file_operations mtd_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
llseek: mtd_lseek, /* lseek */ .llseek = mtd_lseek, /* lseek */
read: mtd_read, /* read */ .read = mtd_read, /* read */
write: mtd_write, /* write */ .write = mtd_write, /* write */
ioctl: mtd_ioctl, /* ioctl */ .ioctl = mtd_ioctl, /* ioctl */
open: mtd_open, /* open */ .open = mtd_open, /* open */
release: mtd_close, /* release */ .release = mtd_close, /* release */
}; };
......
...@@ -914,8 +914,8 @@ static struct block_device_operations nftl_fops = ...@@ -914,8 +914,8 @@ static struct block_device_operations nftl_fops =
****************************************************************************/ ****************************************************************************/
static struct mtd_notifier nftl_notifier = { static struct mtd_notifier nftl_notifier = {
add: NFTL_notify_add, .add = NFTL_notify_add,
remove: NFTL_notify_remove .remove = NFTL_notify_remove
}; };
extern char nftlmountrev[]; extern char nftlmountrev[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment