/* A device event has occurred. Watch for devices going down and delete our use of them (iface and route).  */
static int ddp_device_event(struct notifier_block *this, unsigned long event, void *ptr)
/* A device event has occurred. Watch for devices going down and delete our use of them (iface and route).  */
static int ddp_device_event(struct notifier_block *this, unsigned long event, void *ptr)
{
	struct net_device *dev = ptr;
	if (!net_eq(dev_net(dev), &init_net))
		return NOTIFY_DONE;
	if (event == NETDEV_DOWN)
		atalk_dev_down(dev);
	return NOTIFY_DONE;
}