Module: xenomai-3
Branch: next
Commit: 90dcdc42183257124a3f3dd83a8e20a2faa829c2
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=90dcdc42183257124a3f3dd83a8e20a2faa829c2

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Mar 24 18:57:27 2015 +0100

rtnet: initialize rtdm_driver device_count member

---

 kernel/drivers/net/stack/ipv4/tcp/tcp.c |    1 +
 kernel/drivers/net/stack/ipv4/udp/udp.c |    1 +
 2 files changed, 2 insertions(+)

diff --git a/kernel/drivers/net/stack/ipv4/tcp/tcp.c 
b/kernel/drivers/net/stack/ipv4/tcp/tcp.c
index d6a7b7d..a270713 100644
--- a/kernel/drivers/net/stack/ipv4/tcp/tcp.c
+++ b/kernel/drivers/net/stack/ipv4/tcp/tcp.c
@@ -2119,6 +2119,7 @@ static struct rtdm_driver tcp_driver = {
                                        RTDM_SUBCLASS_RTNET,
                                        RTNET_RTDM_VER),
     .device_flags =     RTDM_PROTOCOL_DEVICE,
+    .device_count =    1,
     .context_size =     sizeof(struct tcp_socket),
 
     .protocol_family =  PF_INET,
diff --git a/kernel/drivers/net/stack/ipv4/udp/udp.c 
b/kernel/drivers/net/stack/ipv4/udp/udp.c
index 3966e54..1e6d5d7 100644
--- a/kernel/drivers/net/stack/ipv4/udp/udp.c
+++ b/kernel/drivers/net/stack/ipv4/udp/udp.c
@@ -707,6 +707,7 @@ static struct rtdm_driver udp_driver = {
                                         RTDM_SUBCLASS_RTNET,
                                         RTNET_RTDM_VER),
     .device_flags =     RTDM_PROTOCOL_DEVICE,
+    .device_count =    1,
     .context_size =     sizeof(struct rtsocket),
 
     .protocol_family =  PF_INET,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to