diff options
Diffstat (limited to 'net/vmw_vsock')
-rw-r--r-- | net/vmw_vsock/af_vsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index 7f93e2a42d7a..3f77f42a3b58 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_vsock.c | |||
@@ -165,7 +165,7 @@ static struct list_head vsock_bind_table[VSOCK_HASH_SIZE + 1]; | |||
165 | static struct list_head vsock_connected_table[VSOCK_HASH_SIZE]; | 165 | static struct list_head vsock_connected_table[VSOCK_HASH_SIZE]; |
166 | static DEFINE_SPINLOCK(vsock_table_lock); | 166 | static DEFINE_SPINLOCK(vsock_table_lock); |
167 | 167 | ||
168 | static __init void vsock_init_tables(void) | 168 | static void vsock_init_tables(void) |
169 | { | 169 | { |
170 | int i; | 170 | int i; |
171 | 171 | ||
@@ -1932,7 +1932,6 @@ static const struct file_operations vsock_device_ops = { | |||
1932 | 1932 | ||
1933 | static struct miscdevice vsock_device = { | 1933 | static struct miscdevice vsock_device = { |
1934 | .name = "vsock", | 1934 | .name = "vsock", |
1935 | .minor = MISC_DYNAMIC_MINOR, | ||
1936 | .fops = &vsock_device_ops, | 1935 | .fops = &vsock_device_ops, |
1937 | }; | 1936 | }; |
1938 | 1937 | ||
@@ -1942,6 +1941,7 @@ static int __vsock_core_init(void) | |||
1942 | 1941 | ||
1943 | vsock_init_tables(); | 1942 | vsock_init_tables(); |
1944 | 1943 | ||
1944 | vsock_device.minor = MISC_DYNAMIC_MINOR; | ||
1945 | err = misc_register(&vsock_device); | 1945 | err = misc_register(&vsock_device); |
1946 | if (err) { | 1946 | if (err) { |
1947 | pr_err("Failed to register misc device\n"); | 1947 | pr_err("Failed to register misc device\n"); |