[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] pciback: Replace commented-out use of dev->enable_cnt with dev->is_enabled.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1267438781 0
# Node ID f66d155ce457dab7a191bc199e878c07c2d2aead
# Parent  791c320be0ba3c1426c3c3a2fb3edd979fc4f8df
pciback: Replace commented-out use of dev->enable_cnt with dev->is_enabled.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/xen/pciback/conf_space_header.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 791c320be0ba -r f66d155ce457 drivers/xen/pciback/conf_space_header.c
--- a/drivers/xen/pciback/conf_space_header.c   Mon Mar 01 09:56:52 2010 +0000
+++ b/drivers/xen/pciback/conf_space_header.c   Mon Mar 01 10:19:41 2010 +0000
@@ -24,8 +24,8 @@ static int command_read(struct pci_dev *
        int ret;
 
        ret = pciback_read_config_word(dev, offset, value, data);
-       /*if (!atomic_read(&dev->enable_cnt))
-               return ret;*/
+       if (!dev->is_enabled)
+               return ret;
 
        for (i = 0; i < PCI_ROM_RESOURCE; i++) {
                if (dev->resource[i].flags & IORESOURCE_IO)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.