/* Find the NET/ROM device for the given callsign.  */
struct net_device* nr_dev_get(ax25_address *addr)
/* Find the NET/ROM device for the given callsign.  */
struct net_device* nr_dev_get(ax25_address *addr)
{
	struct net_device *dev;
	rcu_read_lock();
	for_each_netdev_rcu(&init_net, dev) {
		if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM &&
		    ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0) {
			dev_hold(dev);
			goto out;
		}
	}
	dev = NULL;
out:
	rcu_read_unlock();
	return dev;
}