aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 2fd9e611f8a6..83afc8b8f27b 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -472,7 +472,8 @@ void device_remove_file(struct device *dev,
472 * @dev: device. 472 * @dev: device.
473 * @attr: device binary attribute descriptor. 473 * @attr: device binary attribute descriptor.
474 */ 474 */
475int device_create_bin_file(struct device *dev, struct bin_attribute *attr) 475int device_create_bin_file(struct device *dev,
476 const struct bin_attribute *attr)
476{ 477{
477 int error = -EINVAL; 478 int error = -EINVAL;
478 if (dev) 479 if (dev)
@@ -486,7 +487,8 @@ EXPORT_SYMBOL_GPL(device_create_bin_file);
486 * @dev: device. 487 * @dev: device.
487 * @attr: device binary attribute descriptor. 488 * @attr: device binary attribute descriptor.
488 */ 489 */
489void device_remove_bin_file(struct device *dev, struct bin_attribute *attr) 490void device_remove_bin_file(struct device *dev,
491 const struct bin_attribute *attr)
490{ 492{
491 if (dev) 493 if (dev)
492 sysfs_remove_bin_file(&dev->kobj, attr); 494 sysfs_remove_bin_file(&dev->kobj, attr);