diff options
author | Tejun Heo <tj@kernel.org> | 2014-02-08 10:37:44 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-02-08 10:37:44 -0500 |
commit | f7cef064aa01a1ac682c1945cc168b878cb118ff (patch) | |
tree | 5dc256a4e01689eed60ab3e7a7ab8e50c5bcf602 /include/linux/device.h | |
parent | 1a698a4aba26dd58e8409d325a9a9db22f7cd2db (diff) | |
parent | ba341d55a420ab4fdd1a53fd395fd59bd65de880 (diff) |
Merge branch 'driver-core-next' into cgroup/for-3.15
Pending kernfs conversion depends on kernfs improvements in
driver-core-next. Pull it into for-3.15.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 952b01033c3..fb1ba13f766 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -560,16 +560,12 @@ extern int device_create_file(struct device *device, const struct device_attribute *entry); extern void device_remove_file(struct device *dev, const struct device_attribute *attr); +extern bool device_remove_file_self(struct device *dev, + const struct device_attribute *attr); extern int __must_check device_create_bin_file(struct device *dev, const struct bin_attribute *attr); extern void device_remove_bin_file(struct device *dev, const struct bin_attribute *attr); -extern int device_schedule_callback_owner(struct device *dev, - void (*func)(struct device *dev), struct module *owner); - -/* This is a macro to avoid include problems with THIS_MODULE */ -#define device_schedule_callback(dev, func) \ - device_schedule_callback_owner(dev, func, THIS_MODULE) /* device resource management */ typedef void (*dr_release_t)(struct device *dev, void *res); @@ -929,10 +925,7 @@ extern int device_online(struct device *dev); extern struct device *__root_device_register(const char *name, struct module *owner); -/* - * This is a macro to avoid include problems with THIS_MODULE, - * just as per what is done for device_schedule_callback() above. - */ +/* This is a macro to avoid include problems with THIS_MODULE */ #define root_device_register(name) \ __root_device_register(name, THIS_MODULE) |