Remove sync requirements of pci device trait

It's not needed.

BUG=chromium:831850
TEST=cargo test

Change-Id: I7e38590271ec14db422f5f3421302e98a2ca19ab
Reviewed-on: https://chromium-review.googlesource.com/1194317
Commit-Ready: Jingkui Wang <jkwang@google.com>
Tested-by: Jingkui Wang <jkwang@google.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
Jingkui Wang 2018-08-28 13:31:17 -07:00 committed by chrome-bot
parent bce85fe345
commit b47c6925fb

View file

@ -22,7 +22,7 @@ pub enum Error {
}
pub type Result<T> = std::result::Result<T, Error>;
pub trait PciDevice: Send + Sync {
pub trait PciDevice: Send {
/// Assign a legacy PCI IRQ to this device.
fn assign_irq(&mut self, _irq_evt: EventFd, _irq_num: u32, _irq_pin: PciInterruptPin) {}
/// Allocates the needed IO BAR space using the `allocate` function which takes a size and