diff options
Diffstat (limited to 'net/netrom/af_netrom.c')
-rw-r--r-- | net/netrom/af_netrom.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 1d50f801f181..f4675bf3976c 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -1377,6 +1377,11 @@ static struct notifier_block nr_dev_notifier = { | |||
1377 | 1377 | ||
1378 | static struct net_device **dev_nr; | 1378 | static struct net_device **dev_nr; |
1379 | 1379 | ||
1380 | static struct ax25_protocol nr_pid = { | ||
1381 | .pid = AX25_P_NETROM, | ||
1382 | .func = nr_route_frame | ||
1383 | }; | ||
1384 | |||
1380 | static int __init nr_proto_init(void) | 1385 | static int __init nr_proto_init(void) |
1381 | { | 1386 | { |
1382 | int i; | 1387 | int i; |
@@ -1424,7 +1429,7 @@ static int __init nr_proto_init(void) | |||
1424 | 1429 | ||
1425 | register_netdevice_notifier(&nr_dev_notifier); | 1430 | register_netdevice_notifier(&nr_dev_notifier); |
1426 | 1431 | ||
1427 | ax25_protocol_register(AX25_P_NETROM, nr_route_frame); | 1432 | ax25_register_pid(&nr_pid); |
1428 | ax25_linkfail_register(nr_link_failed); | 1433 | ax25_linkfail_register(nr_link_failed); |
1429 | 1434 | ||
1430 | #ifdef CONFIG_SYSCTL | 1435 | #ifdef CONFIG_SYSCTL |