pci: use device_remove_file_self() instead of device_schedule_callback()
authorTejun Heo <tj@kernel.org>
Fri, 10 Jan 2014 13:57:28 +0000 (08:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jan 2014 22:13:59 +0000 (14:13 -0800)
commit6716d289c437ad42dee455d241b29b71a816fbff
tree44e0a780d1edf781bedde8d9bd7c66b678ffd0da
parent1ae06819c77cff1ea2833c94f8c093fe8a5c79db
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