diff options
author | Tejun Heo <tj@kernel.org> | 2014-01-10 08:57:31 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-10 19:03:19 -0500 |
commit | d1ba277e79889085a2faec3b68b91ce89c63f888 (patch) | |
tree | dab78fe1f72bbbbf46e3398aec1066d49263d8b7 /drivers/base | |
parent | bdbb0a1376635d80e096f6433595a38984cf5408 (diff) |
sysfs, driver-core: remove unused {sysfs|device}_schedule_callback_owner()
All device_schedule_callback_owner() users are converted to use
device_remove_file_self(). Remove now unused
{sysfs|device}_schedule_callback_owner().
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/core.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 9db57afcf81f..4195364f9fdd 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -615,39 +615,6 @@ void device_remove_bin_file(struct device *dev, | |||
615 | } | 615 | } |
616 | EXPORT_SYMBOL_GPL(device_remove_bin_file); | 616 | EXPORT_SYMBOL_GPL(device_remove_bin_file); |
617 | 617 | ||
618 | /** | ||
619 | * device_schedule_callback_owner - helper to schedule a callback for a device | ||
620 | * @dev: device. | ||
621 | * @func: callback function to invoke later. | ||
622 | * @owner: module owning the callback routine | ||
623 | * | ||
624 | * Attribute methods must not unregister themselves or their parent device | ||
625 | * (which would amount to the same thing). Attempts to do so will deadlock, | ||
626 | * since unregistration is mutually exclusive with driver callbacks. | ||
627 | * | ||
628 | * Instead methods can call this routine, which will attempt to allocate | ||
629 | * and schedule a workqueue request to call back @func with @dev as its | ||
630 | * argument in the workqueue's process context. @dev will be pinned until | ||
631 | * @func returns. | ||
632 | * | ||
633 | * This routine is usually called via the inline device_schedule_callback(), | ||
634 | * which automatically sets @owner to THIS_MODULE. | ||
635 | * | ||
636 | * Returns 0 if the request was submitted, -ENOMEM if storage could not | ||
637 | * be allocated, -ENODEV if a reference to @owner isn't available. | ||
638 | * | ||
639 | * NOTE: This routine won't work if CONFIG_SYSFS isn't set! It uses an | ||
640 | * underlying sysfs routine (since it is intended for use by attribute | ||
641 | * methods), and if sysfs isn't available you'll get nothing but -ENOSYS. | ||
642 | */ | ||
643 | int device_schedule_callback_owner(struct device *dev, | ||
644 | void (*func)(struct device *), struct module *owner) | ||
645 | { | ||
646 | return sysfs_schedule_callback(&dev->kobj, | ||
647 | (void (*)(void *)) func, dev, owner); | ||
648 | } | ||
649 | EXPORT_SYMBOL_GPL(device_schedule_callback_owner); | ||
650 | |||
651 | static void klist_children_get(struct klist_node *n) | 618 | static void klist_children_get(struct klist_node *n) |
652 | { | 619 | { |
653 | struct device_private *p = to_device_private_parent(n); | 620 | struct device_private *p = to_device_private_parent(n); |