diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2016-12-15 11:42:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-17 11:29:31 -0500 |
commit | 616f6b40236fb9fdfc5267e2e945e16b7448b641 (patch) | |
tree | 57cf81c0d62f0776b81006f2c84ce023450fbafc /net/irda/irnet | |
parent | 33de4d1bb9e3d90e2238e85d7865ec664cf48e60 (diff) | |
download | op-kernel-dev-616f6b40236fb9fdfc5267e2e945e16b7448b641.zip op-kernel-dev-616f6b40236fb9fdfc5267e2e945e16b7448b641.tar.gz |
irda: irnet: 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: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/irnet')
-rw-r--r-- | net/irda/irnet/irnet_ppp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/irda/irnet/irnet_ppp.h b/net/irda/irnet/irnet_ppp.h index ec092c9..3206144 100644 --- a/net/irda/irnet/irnet_ppp.h +++ b/net/irda/irnet/irnet_ppp.h @@ -108,9 +108,9 @@ static const struct file_operations irnet_device_fops = /* Structure so that the misc major (drivers/char/misc.c) take care of us... */ static struct miscdevice irnet_misc_device = { - IRNET_MINOR, - "irnet", - &irnet_device_fops + .minor = IRNET_MINOR, + .name = "irnet", + .fops = &irnet_device_fops }; #endif /* IRNET_PPP_H */ |