void atm_dev_deregister(struct atm_dev *dev) { #ifdef CONFIG_PROC_FS if (dev->ops->proc_read) atm_proc_dev_deregister(dev); #endif free_atm_dev(dev); }
void atm_dev_deregister(struct atm_dev *dev) { #ifdef CONFIG_PROC_FS if (dev->ops->proc_read) atm_proc_dev_deregister(dev); #endif spin_lock(&atm_dev_lock); __free_atm_dev(dev); spin_unlock(&atm_dev_lock); }