void driver_remove_file(struct device_driver *drv, struct driver_attribute *attr) { if(get_driver(drv)) { sysfs_remove_file(&drv->kobj, &attr->attr); put_driver(drv); } }