void ipath_diag_remove(struct ipath_devdata *dd) { if (atomic_dec_and_test(&diagpkt_count)) ipath_cdev_cleanup(&diagpkt_cdev, &diagpkt_class_dev); ipath_cdev_cleanup(&dd->diag_cdev, &dd->diag_class_dev); }
void ipath_diag_remove(struct ipath_devdata *dd) { ipath_cdev_cleanup(&dd->diag_cdev, &dd->diag_class_dev); }