genetlink: unify registration functions
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Nov 2013 13:19:08 +0000 (14:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2013 01:50:23 +0000 (20:50 -0500)
commit568508aa0724cc39bcf7d3d8001bd27a45609800
tree11e9648ccbd27021e18307f5639684b5c563c19c
parent052e31281575b2894aad09672bd9ac435488ff04
genetlink: unify registration functions

Now that the ops assignment is just two variables rather than a
long list iteration etc., there's no reason to separately export
__genl_register_family() and __genl_register_family_with_ops().

Unify the two functions into __genl_register_family() and make
genl_register_family_with_ops() call it after assigning the ops.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/genetlink.h
net/netlink/genetlink.c