diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-06-30 13:06:40 -0400 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-07-23 17:00:25 -0400 |
commit | 4dfce4075aa4e2eee35e52a78dbabfe37d94c908 (patch) | |
tree | 962f5cde27a9b7eedc45b4c018d07d10b455d590 /drivers/net/wan/hdlc.c | |
parent | d6f8aa8586dabe605454f3c98a5c1a577c3e0cfb (diff) |
WAN: cosmetic changes to generic HDLC
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'drivers/net/wan/hdlc.c')
-rw-r--r-- | drivers/net/wan/hdlc.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/drivers/net/wan/hdlc.c b/drivers/net/wan/hdlc.c index e3a536477c7e..1f2a140c9f7c 100644 --- a/drivers/net/wan/hdlc.c +++ b/drivers/net/wan/hdlc.c | |||
@@ -22,20 +22,19 @@ | |||
22 | * - proto->start() and stop() are called with spin_lock_irq held. | 22 | * - proto->start() and stop() are called with spin_lock_irq held. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <linux/module.h> | ||
26 | #include <linux/kernel.h> | ||
27 | #include <linux/slab.h> | ||
28 | #include <linux/poll.h> | ||
29 | #include <linux/errno.h> | 25 | #include <linux/errno.h> |
26 | #include <linux/hdlc.h> | ||
30 | #include <linux/if_arp.h> | 27 | #include <linux/if_arp.h> |
28 | #include <linux/inetdevice.h> | ||
31 | #include <linux/init.h> | 29 | #include <linux/init.h> |
32 | #include <linux/skbuff.h> | 30 | #include <linux/kernel.h> |
31 | #include <linux/module.h> | ||
32 | #include <linux/notifier.h> | ||
33 | #include <linux/pkt_sched.h> | 33 | #include <linux/pkt_sched.h> |
34 | #include <linux/inetdevice.h> | 34 | #include <linux/poll.h> |
35 | #include <linux/lapb.h> | ||
36 | #include <linux/rtnetlink.h> | 35 | #include <linux/rtnetlink.h> |
37 | #include <linux/notifier.h> | 36 | #include <linux/skbuff.h> |
38 | #include <linux/hdlc.h> | 37 | #include <linux/slab.h> |
39 | #include <net/net_namespace.h> | 38 | #include <net/net_namespace.h> |
40 | 39 | ||
41 | 40 | ||
@@ -109,7 +108,7 @@ static int hdlc_device_event(struct notifier_block *this, unsigned long event, | |||
109 | 108 | ||
110 | if (dev->get_stats != hdlc_get_stats) | 109 | if (dev->get_stats != hdlc_get_stats) |
111 | return NOTIFY_DONE; /* not an HDLC device */ | 110 | return NOTIFY_DONE; /* not an HDLC device */ |
112 | 111 | ||
113 | if (event != NETDEV_CHANGE) | 112 | if (event != NETDEV_CHANGE) |
114 | return NOTIFY_DONE; /* Only interrested in carrier changes */ | 113 | return NOTIFY_DONE; /* Only interrested in carrier changes */ |
115 | 114 | ||
@@ -357,7 +356,7 @@ static struct packet_type hdlc_packet_type = { | |||
357 | 356 | ||
358 | 357 | ||
359 | static struct notifier_block hdlc_notifier = { | 358 | static struct notifier_block hdlc_notifier = { |
360 | .notifier_call = hdlc_device_event, | 359 | .notifier_call = hdlc_device_event, |
361 | }; | 360 | }; |
362 | 361 | ||
363 | 362 | ||
@@ -367,8 +366,8 @@ static int __init hdlc_module_init(void) | |||
367 | 366 | ||
368 | printk(KERN_INFO "%s\n", version); | 367 | printk(KERN_INFO "%s\n", version); |
369 | if ((result = register_netdevice_notifier(&hdlc_notifier)) != 0) | 368 | if ((result = register_netdevice_notifier(&hdlc_notifier)) != 0) |
370 | return result; | 369 | return result; |
371 | dev_add_pack(&hdlc_packet_type); | 370 | dev_add_pack(&hdlc_packet_type); |
372 | return 0; | 371 | return 0; |
373 | } | 372 | } |
374 | 373 | ||