/* device_create_bin_file - create sysfs binary attribute file for device. @dev: device. @attr: device binary attribute descriptor.  */
int device_create_bin_file(struct device *dev, const struct bin_attribute *attr)
/* device_create_bin_file - create sysfs binary attribute file for device. @dev: device. @attr: device binary attribute descriptor.  */
int device_create_bin_file(struct device *dev, const struct bin_attribute *attr)
{
	int error = -EINVAL;
	if (dev)
		error = sysfs_create_bin_file(&dev->kobj, attr);
	return error;
}