diff options
author | Tejun Heo <tj@kernel.org> | 2014-02-03 14:03:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-07 18:42:41 -0500 |
commit | ce8b04aa6c9bdf211b921fdd18c040ea29516b97 (patch) | |
tree | 9c45ed4ce13c1e956397bcef8d2f500dd8fac805 /drivers/base | |
parent | 0b60f9ead5d4816e7e3d6e28f4a0d22d4a1b2513 (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); |