patch-2.4.0-test10 linux/net/802/p8022.c

Next file: linux/net/802/psnap.c
Previous file: linux/net/802/llc_macinit.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/net/802/p8022.c linux/net/802/p8022.c
@@ -90,11 +90,14 @@
 EXPORT_SYMBOL(register_8022_client);
 EXPORT_SYMBOL(unregister_8022_client);
 
-void __init p8022_proto_init(struct net_proto *pro)
+static int __init p8022_init(void)
 {
 	p8022_packet_type.type=htons(ETH_P_802_2);
 	dev_add_pack(&p8022_packet_type);
+	return 0;
 }
+
+module_init(p8022_init);
 
 struct datalink_proto *register_8022_client(unsigned char type, int (*rcvfunc)(struct sk_buff *, struct net_device *, struct packet_type *))
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)