/* driver_create_file - create sysfs file for driver. @drv: driver. @attr: driver attribute descriptor.  */
int driver_create_file(struct device_driver *drv, const struct driver_attribute *attr)
/* driver_create_file - create sysfs file for driver. @drv: driver. @attr: driver attribute descriptor.  */
int driver_create_file(struct device_driver *drv, const struct driver_attribute *attr)
{
	int error;
	if (drv)
		error = sysfs_create_file(&drv->p->kobj, &attr->attr);
	else
		error = -EINVAL;
	return error;
}