]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
Moved bcm_init() analogue to Kernel 2.6 bcm.c
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Mon, 10 Dec 2007 15:19:57 +0000 (15:19 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Mon, 10 Dec 2007 15:19:57 +0000 (15:19 +0000)
git-svn-id: svn://svn.berlios.de//socketcan/trunk@594 030b6a49-0b11-0410-94ab-b0dab22257f2

kernel/2.4/can/bcm.c

index 67abb0ffa736d0dba94a8091d4d003479f86964c..b9bbd864a6e1245566852f659d4e4ce89df52d80 100644 (file)
@@ -1201,24 +1201,6 @@ static int bcm_sendmsg(struct socket *sock, struct msghdr *msg, int size,
        return ret;
 }
 
-/*
- * initial settings for all BCM sockets to be set at socket creation time
- */
-static int bcm_init(struct sock *sk)
-{
-       struct bcm_opt *bo = bcm_sk(sk);
-
-       bo->bound            = 0;
-       bo->ifindex          = 0;
-       bo->dropped_usr_msgs = 0;
-       bo->bcm_proc_read    = NULL;
-
-       bo->tx_ops = NULL;
-       bo->rx_ops = NULL;
-
-       return 0;
-}
-
 /*
  * notification handler for netdevice status changes
  */
@@ -1239,6 +1221,24 @@ static void bcm_notifier(unsigned long msg, void *data)
        }
 }
 
+/*
+ * initial settings for all BCM sockets to be set at socket creation time
+ */
+static int bcm_init(struct sock *sk)
+{
+       struct bcm_opt *bo = bcm_sk(sk);
+
+       bo->bound            = 0;
+       bo->ifindex          = 0;
+       bo->dropped_usr_msgs = 0;
+       bo->bcm_proc_read    = NULL;
+
+       bo->tx_ops = NULL;
+       bo->rx_ops = NULL;
+
+       return 0;
+}
+
 /*
  * standard socket functions
  */