[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 05/13] Use pci_is_enabled() instead of is_enabled.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> --- drivers/xen/pciback/conf_space_header.c | 4 ++-- drivers/xen/pciback/pciback_ops.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/xen/pciback/conf_space_header.c b/drivers/xen/pciback/conf_space_header.c index f794e12..5a9e028 100644 --- a/drivers/xen/pciback/conf_space_header.c +++ b/drivers/xen/pciback/conf_space_header.c @@ -22,14 +22,14 @@ static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) { int err; - if (!dev->is_enabled && is_enable_cmd(value)) { + if (!pci_is_enabled(dev) && is_enable_cmd(value)) { if (unlikely(verbose_request)) printk(KERN_DEBUG "pciback: %s: enable\n", pci_name(dev)); err = pci_enable_device(dev); if (err) return err; - } else if (dev->is_enabled && !is_enable_cmd(value)) { + } else if (pci_is_enabled(dev) && !is_enable_cmd(value)) { if (unlikely(verbose_request)) printk(KERN_DEBUG "pciback: %s: disable\n", pci_name(dev)); diff --git a/drivers/xen/pciback/pciback_ops.c b/drivers/xen/pciback/pciback_ops.c index a937564..5bc68b2 100644 --- a/drivers/xen/pciback/pciback_ops.c +++ b/drivers/xen/pciback/pciback_ops.c @@ -26,7 +26,6 @@ void pciback_reset_device(struct pci_dev *dev) pci_write_config_word(dev, PCI_COMMAND, 0); - dev->is_enabled = 0; dev->is_busmaster = 0; } else { pci_read_config_word(dev, PCI_COMMAND, &cmd); -- 1.6.2.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |