projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a256be7
)
genetlink: use genl_register_family_with_ops()
author
Changli Gao
<xiaosuo@gmail.com>
Sun, 25 Jul 2010 23:21:05 +0000
(23:21 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 27 Jul 2010 04:00:10 +0000
(21:00 -0700)
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netlink/genetlink.c
b/net/netlink/genetlink.c
index e09e17a90b31bf0fa39dca2424802c34e1baae8e..26ed3e8587c20f13a22c7aa2e2abf91dedf3d62a 100644
(file)
--- a/
net/netlink/genetlink.c
+++ b/
net/netlink/genetlink.c
@@
-877,11
+877,7
@@
static int __init genl_init(void)
for (i = 0; i < GENL_FAM_TAB_SIZE; i++)
INIT_LIST_HEAD(&family_ht[i]);
- err = genl_register_family(&genl_ctrl);
- if (err < 0)
- goto problem;
-
- err = genl_register_ops(&genl_ctrl, &genl_ctrl_ops);
+ err = genl_register_family_with_ops(&genl_ctrl, &genl_ctrl_ops, 1);
if (err < 0)
goto problem;