/** * cx_device_reload - Reload the device. * @nasid: device's nasid * @part_num: device's part number * @mfg_num: device's manufacturer number * * Remove the device associated with 'nasid' from device list and then * call device-register with the given part/mfg numbers. */ static int cx_device_reload(struct cx_dev *cx_dev) { cx_device_unregister(cx_dev); return cx_device_register(cx_dev->cx_id.nasid, cx_dev->cx_id.part_num, cx_dev->cx_id.mfg_num, cx_dev->hubdev, cx_dev->bt); }
static int cx_remove_device(struct device * dev, void * data) { struct cx_dev *cx_dev = to_cx_dev(dev); device_remove_file(dev, &dev_attr_cxdev_control); cx_device_unregister(cx_dev); return 0; }