]> git.baikalelectronics.ru Git - kernel.git/commit
pci: use device_remove_file_self() instead of device_schedule_callback()
authorTejun Heo <tj@kernel.org>
Mon, 3 Feb 2014 19:03:02 +0000 (14:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 23:42:41 +0000 (15:42 -0800)
commitcce6ec73455014404f73c0ba2e77a2970d30571e
tree9c0f72f4ba0001d4ddcca7122a0243c2ccb1bb54
parent2404d50bffa3da6ec760693e3bc87a7e0f61f465
pci: use device_remove_file_self() instead of device_schedule_callback()

driver-core now supports synchrnous self-deletion of attributes and
the asynchrnous removal mechanism is scheduled for removal.  Use it
instead of device_schedule_callback().  This makes "remove" behave
synchronously.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/pci-sysfs.c