aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/core.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 9db57afcf81f..2b567177ef78 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -571,23 +571,6 @@ void device_remove_file(struct device *dev,
571EXPORT_SYMBOL_GPL(device_remove_file); 571EXPORT_SYMBOL_GPL(device_remove_file);
572 572
573/** 573/**
574 * device_remove_file_self - remove sysfs attribute file from its own method.
575 * @dev: device.
576 * @attr: device attribute descriptor.
577 *
578 * See kernfs_remove_self() for details.
579 */
580bool device_remove_file_self(struct device *dev,
581 const struct device_attribute *attr)
582{
583 if (dev)
584 return sysfs_remove_file_self(&dev->kobj, &attr->attr);
585 else
586 return false;
587}
588EXPORT_SYMBOL_GPL(device_remove_file_self);
589
590/**
591 * device_create_bin_file - create sysfs binary attribute file for device. 574 * device_create_bin_file - create sysfs binary attribute file for device.
592 * @dev: device. 575 * @dev: device.
593 * @attr: device binary attribute descriptor. 576 * @attr: device binary attribute descriptor.