提交 f17c941c 编写于 作者: C Corentin Labbe 提交者: Greg Kroah-Hartman

mmtimer: add member name to the miscdevice declaration

Since the struct miscdevice have many members, it is dangerous to init
it without members name relying only on member order.

This patch add member name to the init declaration.
Signed-off-by: NCorentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 816c9311
...@@ -463,9 +463,9 @@ static int mmtimer_mmap(struct file *file, struct vm_area_struct *vma) ...@@ -463,9 +463,9 @@ static int mmtimer_mmap(struct file *file, struct vm_area_struct *vma)
} }
static struct miscdevice mmtimer_miscdev = { static struct miscdevice mmtimer_miscdev = {
SGI_MMTIMER, .minor = SGI_MMTIMER,
MMTIMER_NAME, .name = MMTIMER_NAME,
&mmtimer_fops .fops = &mmtimer_fops
}; };
static struct timespec sgi_clock_offset; static struct timespec sgi_clock_offset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册