From 92889eca62fcd5b72d7c54101c35ff6d6d477c40 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Fri, 23 Sep 2016 15:08:17 +0200 Subject: device: Move the different device type registrations to the device type file While at it; make device_types static if only used in the device type file Signed-off-by: Hans Dedecker --- tunnel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tunnel.c') diff --git a/tunnel.c b/tunnel.c index ec622d8..32f3613 100644 --- a/tunnel.c +++ b/tunnel.c @@ -97,4 +97,7 @@ struct device_type tunnel_device_type = { .free = tunnel_free, }; - +static void __init tunnel_device_type_init(void) +{ + device_type_add(&tunnel_device_type); +} -- cgit v1.2.1