#include <linux/seq_file.h>
static ax25_route *ax25_route_list;
-static DEFINE_RWLOCK(ax25_route_lock);
+static rwlock_t ax25_route_lock = RW_LOCK_UNLOCKED;
static ax25_route *ax25_get_route(ax25_address *, struct net_device *);
if (ax25->sk != NULL) {
bh_lock_sock(ax25->sk);
- sock_reset_flag(ax25->sk, SOCK_ZAPPED);
+ ax25->sk->sk_zapped = 0;
bh_unlock_sock(ax25->sk);
}